Sign inSign up

captaingeech/cube2srv

By captaingeech

•Updated almost 5 years ago

Cube 2: Sauerbraten server

Image
0

10K+

captaingeech/cube2srv repository overview

Sauerbraten: Cube 2 server via Docker

⁠Accompanying docker-compose.yml

version: '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

⁠Usage

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).

Tag summary

Content type

Image

Digest

Size

1.9 GB

Last updated

almost 5 years ago

docker pull captaingeech/cube2srv