Sauerbraten: Cube 2 server via Docker
docker-compose.ymlversion: '3'
services:
srv:
image: captaingeech/cube2srv:latest
ports:
- "28785:28785/tcp"
- "28785:28785/udp"
- "28786:28786/tcp"
- "28786:28786/udp"
volumes:
- ${PWD}/server-init.cfg:/srv/sauerbraten/server-init.cfg
Read this blog post for details, but tl;dr copy server-init.tmpl.cfg to server-init.cfg and make any changes you want, then run:
$ docker-compose build
$ docker-compose up -d
The docker-compose.yml file uses a volume to mount the server-init.cfg file in your current directory into the proper container path, modify as you see fit.
After a couple minutes, your server should show up in the server list in the game. If it doesn't check the logs with docker-compose logs and ensure that your network settings are correct (by default, ports 28785 and 28786 via both TCP and UDP).
Content type
Image
Digest
Size
1.9 GB
Last updated
almost 5 years ago
docker pull captaingeech/cube2srv