/ns2_server-docker

Docker Image for Natural Selection 2 Server

Primary LanguageDockerfileMIT LicenseMIT

Natural Selection 2 Server Image for Docker

Docker Build Status

Supported tags and respective Dockerfile links

How to use this image

Hosting a simple game server

Running on the host interface (recommended):

$ docker run -d --net=host --name=mordhau-dedicated cm2network/mordhau

Running multiple instances (iterate SERVER_PORT, SERVER_QUERYPORT and SERVER_BEACONPORT):

$ docker run -d --net=host -e SERVER_PORT=7778 -e SERVER_QUERYPORT=27016 -e SERVER_BEACONPORT=15001 --name=mordhau-dedicated2 cm2network/mordhau

It's also recommended using "--cpuset-cpus=" to limit the game server to a specific core & thread.
The container will automatically update the game on startup, so if there is a game update just restart the container.

Configuration

Environment Variables

Feel free to overwrite these environment variables, using -e (--env):

SERVER_ADMINPW="replacethisyoumadlad"
SERVER_PW=""
SERVER_MAXPLAYERS=32
SERVER_TICKRATE=60
SERVER_PORT=7777
SERVER_QUERYPORT=27015
SERVER_BEACONPORT=15000
SERVER_DEFAULTMAP="\/Game\/Mordhau\/Maps\/ThePit\/FFA_ThePit.FFA_ThePit"

Config

The config files can be found under /home/steam/mordhau-dedicated/Mordhau/Saved/Config/LinuxServer

If you want to learn more about configuring a Mordhau server check this documentation.