Dockerfile for Team Fortress 2 server
Find a file
Cypher100 eb692495e6 Update README.md
Their is a way to add in the config file without using a dockerfile to add it. This makes it possible to deploy multiple servers with each of their own config quickly.
2014-10-25 09:54:53 -05:00
Dockerfile There should always be map specified 2013-11-16 10:51:11 +03:00
README.md Update README.md 2014-10-25 09:54:53 -05: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

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.

# Build image and tag it as tf2
docker build -t tf2 github.com/Gonzih/docker-tf2-server

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

# Run image with custom options
docker run -d -p 27015:27015/udp tf2 +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 tf2