A Generic Docker/Docker Compose workflow for spinning up game servers which use Steam/SteamCMD.
These instructions will get you a copy of the project up and running.
- Docker
- Docker Compose
- Add any additional config files to the
configfolder - Add any additional environment variables to
./config/config.env(Sample provided) - Run
docker-compose up -d
- This workflow includes additional support for shipping container logs to a remote syslog server. To enable this feature, instead of the default
docker-compose up -dcommand, use the following command:
docker-compose -f docker-compose.yml -f syslog-support.yml up -dAdditionally, ensure that the SYSLOG_SERVER_ADDRESS environment variable is set in ./config/config.env.
- The
game_servercontainer adds theSYS_NICEcapability to ensure that the container runtime is able to give priority to the game server daemon, for added reliability/stability. If you notice general host system instability, comment or remove this from thedocker-compose.ymland rebuild the container.