mirror of
https://codeberg.org/spire/docker-tf2-server.git
synced 2026-06-03 09:54:20 +02:00
update readme
This commit is contained in:
parent
e66df023bc
commit
da9e07611a
1 changed files with 10 additions and 16 deletions
26
README.md
26
README.md
|
|
@ -1,29 +1,23 @@
|
|||
## 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.
|
||||
|
||||
```shell
|
||||
# Build image and tag it as tf2
|
||||
docker build -t tf2 github.com/Gonzih/docker-tf2-server
|
||||
|
||||
```shell
|
||||
# Run image with default options (CMD in Dockerfile)
|
||||
docker run -d -p 27015:27015/udp tf2
|
||||
docker run -d -p 27015:27015/udp spiretf/docker-tf2-server
|
||||
|
||||
# Run image with custom options
|
||||
docker run -d -p 27015:27015/udp tf2 +sv_pure 2 +map ctf_2fort.bsp +maxplayers 32
|
||||
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 tf2
|
||||
docker run -d -p 27015:27015/udp -v ~/server.cfg:/home/tf2/hlserver/tf2/tf/cfg/server.cfg:ro spiretf/docker-tf2-server
|
||||
```
|
||||
|
||||
### Why this image is not on the public docker hub?
|
||||
I personaly don't like idea of downloading binary executable blob that runs in a daemon with root permissions on my server.
|
||||
Docker is far from being secure (at least at the current moment).
|
||||
So building your own image is much better option in that sense.
|
||||
|
||||
Also this image is quiet heavy (~ 6.2 Gb) and with current hub speeds I don't have patience to upload it.
|
||||
It might be possible that downloading tf2 server from steam is faster then downloading image from docker hub.
|
||||
|
||||
Again I strive to use my own images (FROM scratch), so no plans on uploading this to hub right now.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue