NotQuiteApex / Docker-OpenFortressServer

Docker image for quick and easy Open Fortress server hosting.
MIT License
7 stars 2 forks source link
docker openfortress tf2 tf2-mod

Open Fortress Server with Docker

A Docker image to streamline and easily deploy new Open Fortress servers. Requires Docker to be installed. Based off the old official Linux server guide. The image is rebuilt automatically every week on Sunday with all the latest updates for everything.

Tags

Simple Guide - Setting up and deploying a simple server

  1. First off, you'll want to install Docker, this tutorial assumes you will be using Docker on some flavor of Linux, and know some basic stuff about Linux.
  2. Next, you'll want to clone/download this repo, cd into the cloned repo, then docker compose up to run the server attached to your terminal.
  3. The server will start up, first updating TF2 and the SDK, then Open Fortress, and then properly start the server. You will see a message about root access, this is safe to ignore. You may also see a message about no map being specified, this is safe to ignore if a map is selected in autoexec.cfg (which there is by default, dm_2fort).
  4. The output will say what its public IP is, indicating that the server is up and running an accessible. You can send a keyboard interrupt (ctrl+c) to stop the server.

Notes:

Expert Guide - SourceMod, custom content, and more

If you know Docker pretty well or need some specific changes to the setup, you can change the docker-compose.yml. For example, if you'd like to run the server with SourceMod for plugins and better server management, edit the compose file to change the image tag from "latest" to "latest-sm".

To add/edit files to/on your server, certain directories for the server are exposed as Docker volumes. If using the default docker-compose.yml, these named volumes are of_cfg, of_custom, and of_addons for useful server directories you might want to edit and add files to. They are analogous to the server's cfg folder, custom folder, and addons folder respectively. The latter of which can be used to install and manage SourceMod. You can learn how to access these volumes here, using the docker volume inspect command and using the outputed mount point.

The Open Fortress Docker Image bases the image off itself to simply update the files of the game. This is done with the Dockerfile.of file in the dockerfiles folder, however if you need to build the image from scratch the Dockerfile.cache file will be what you need to use.

License

This project's code is licensed under the MIT license, copyright Logan "NotQuiteApex" Hickok-Dickson. See LICENSE.md for more details.

This project pulls and uses assets belonging to multiple third-parties such as Valve Software or the Open Fortress dev team. These assets do not fall under the license described above, and are subject to any terms described by the respective license holder(s).

This project makes use of murse, a CLI tool developed by Welt for managing Toast projects such as Open Fortress. Please see its repo for more details on its license and attribution.