Dockerfile for a basic Team Fortress 2 server
  • Dockerfile 79.6%
  • Shell 20.4%
Find a file
Robin Appelman da9e07611a update readme
2015-11-22 16:02:17 +01:00
Dockerfile add unzip 2015-11-22 16:02:02 +01:00
README.md update readme 2015-11-22 16:02:17 +01:00
tf.sh Init 2013-11-03 14:45:11 +03:00
tf2_ds.txt Init 2013-11-03 14:45:11 +03:00
update.sh Init 2013-11-03 14:45:11 +03:00

Team Fortress 2 + Docker

Basic Team Fortress 2 server

docker pull spiretf/docker-tf2-server

Details:

By default image is build with enabled autoupdate feature (take a look at tf.sh file). You can create new Dockerfile based on that image (FROM tf2) and customize it with plugins, configs, CMD and ENTRYPOINT instructions.

# Run image with default options (CMD in Dockerfile)
docker run -d -p 27015:27015/udp spiretf/docker-tf2-server

# Run image with custom options
docker run -d -p 27015:27015/udp spiretf/docker-tf2-server +sv_pure 2 +map ctf_2fort.bsp +maxplayers 32

# Run image with custom config
docker run -d -p 27015:27015/udp -v ~/server.cfg:/home/tf2/hlserver/tf2/tf/cfg/server.cfg:ro spiretf/docker-tf2-server