Sign inSign up

hermsi/mordhau-server

By hermsi

Updated over 5 years ago

Mordhau-server, configurable by environment-variables, upon a slim debian image

Image
1

5.0K

hermsi/mordhau-server repository overview

Build Status

Mordhau-Server dockerized

Usage

Configuration

You can configure the initial configuration for your mordhau-server by using environment variables:

VariableDefault valueExplanation
SESSION_NAMEDockerized Mordhau Server by github.com/Hermsi1337The name of your Mordhau-session which is visible in game when searching for servers
SERVER_PASSWORDYouSh4llNotP4SSServer password which is required to join your session. (overwrite with empty string if you want to disable password authentication)
ADMIN_PASSWORDTh1sShouldB3ch4ng3dAdmin-password in order to access the admin console
MAX_PLAYERS20Maximum number of players to join your session
SERVER_VOLUME/appPath where the server-files are stored
GAME_CLIENT_PORT7777Exposed game-client port
SERVER_LIST_PORT27015Exposed server-list port
BEACON_PORT15000Exposed beacon port
Get things running
docker-run

I personally preffer docker-compose but for those of you, who want to run their own Mordhau-server without any "zip and zap", here you go:

$ docker run -d --name="mordhau_server" --restart=always -v "${HOME}/mordhau-server:/app" -p 7777:7777 -p 27015:27015 -e SESSION_NAME="Awesome Mordhau is awesome" -e ADMIN_PASSWORD="FooB4r"
docker-compose

In order to startup your own Mordhau-server with docker-compose - which I personally preffer over a simple docker run - you may adapt the following docker-compose.yml:

version: '3'

volumes:
  server-data:

services:
  server:
    restart: always
    container_name: ${COMPOSE_PROJECT_NAME}_server
    image: hermsi/mordhau-server:latest
    # If you want to build from fresh source every "docker-compose up" ...
    # ... remove the "image:"-key and uncomment the following two lines:
    #build:
    #  context: ../.
    volumes:
      - server-data:/app
    environment:
      - SESSION_NAME=${SESSION_NAME}
      - SERVER_PASSWORD=${SERVER_PASSWORD}
      - ADMIN_PASSWORD=${ADMIN_PASSWORD}
      - MAX_PLAYERS=${MAX_PLAYERS}
    ports:
      # Game client port:
      - "7777:7777/udp"
      # Peer port:
      - "7778:7778/udp"
      # Beacon port:
      - "15000:15000/udp"
      # Steam server-list port:
      - "27015:27015/udp"
    networks:
      - default
Tweaking

After your container is up and Mordhau is installed you can start tweaking your configuration.
The main configuration-file is located inside your $SERVER_VOLUME: Mordhau/Saved/Config/LinuxServer/Game.ini.
A very good explanation on what you can configure can be found here
After you've made your changes, restart the container in order to load the new configuration.

Tag summary

Content type

Image

Digest

Size

191.1 MB

Last updated

over 5 years ago

docker pull hermsi/mordhau-server