A Docker image to streamline and easily deploy new Open Fortress servers. Requires Docker to be installed. Based off the "official server guide". The image is rebuilt automatically every night with all the latest updates for everything.
latest
- The latest basic server image of Open Fortress.latest-sm
- The latest server image of Open Fortress with SourceMod preinstalled._tf2sdk
- The base image that is used to build the above two builds, includes TF2 and SDK and necessary tooling. Does not update often. DO NOT USE UNLESS DEBUGGING.
- 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.
- Next, you'll want to clone/download this repo, cd into the cloned repo and run
docker compose up
to run the server attached to your terminal. - 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.
- The output may appear frozen after a bit, at that point the server has likely started and you can connect; due to the way Source engine outputs console info the output in Docker may not update with what is happening with the server.
- Send a keyboard interrupt to stop the server.
Notes:
- If you want to run the server detached, you can run
docker compose up -d
to detach it from your terminal; you'll want to rundocker compose stop
if you want to stop the server if it's detached. - You can access the server's files with the volumes created by Docker in the
/var/lib/docker/volumes/
directory, although you will need superuser/root access to manage them (this is a limitation of Docker). - You can run
docker compose down
to remove the container and volumes for the server. - You will still need to forward the ports 27005 and 27015 yourself on your router.
If you know Docker pretty well or need some specific changes, 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, accessible at the /var/lib/docker/volumes/
directory. There are volumes for the custom folder, config folder, and SourceMod plugins folder.
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 for managing Toast projects such as Open Fortress. Please see its repo for more details on its license and attribution.