Docker image for Sven Co-op server.
Go to file
2023-11-27 12:02:12 +01:00
.misc Update documentation with basic info 2022-03-30 22:47:33 +02:00
scripts Add possibility to change game name and password 2022-03-27 19:34:05 +02:00
.drone.yml Add drone config 2022-12-06 21:22:03 +01:00
Dockerfile Fix packages to install and change base image release 2023-11-27 12:02:12 +01:00
LICENSE Add license 2022-03-24 18:52:04 +01:00
README.md Add drone config 2022-12-06 21:22:03 +01:00

mr-vercetti/docker-svencoop

Build Status

Dedicated Sven Co-Op server in a Docker container.

Sven Co-op logo

Usage

Examples of how you can run this container on your own machine.

docker-compose

services:
   svencoop:
      image: mrvercetti/svencoop-server
      container_name: svencoop
      environment:
         - GAME_PARAMS=-console -port 27015 +maxplayers 8 +map stadium4 +log on
         - GAME_NAME=Sven Co-Op server
         - GAME_PASSWORD=123
      ports:
         - 27015:27015
         - 27015:27015/udp
      restart: unless-stopped

docker-cli

docker run -d \
    --name=svencoop \
    --env GAME_PARAMS=-console -port 27015 +maxplayers 8 +map stadium4 +log on
    --env GAME_NAME=Sven Co-Op server \
    --env GAME_PASSWORD=123 \
    --port 27015:27015 \
    --port 27015:27015/udp \
    --restart unless-stopped \ 
    mrvercetti/svencoop-server

Environment variables

All of them are optional. Don't quote them as this can cause weird issues.

  • GAME_PARAMS - startup parameters for server, you can specify port, map, max number of players and much more.
  • GAME_NAME - name which will be displayed in server browser.
  • GAME_PASSWORD - if specified, the server will ask for it when joining the game.