Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 853 Bytes

README.md

File metadata and controls

32 lines (29 loc) · 853 Bytes

valheim-server-docker

Valheim Server in a Docker Container

Docker example

$ mkdir -p $PWD/valheim-server-config
$ docker run -d --rm \
    -p 2456-2458:2456-2458/udp \
    -v $PWD/valheim-server-config:/config \
    -e SERVER_NAME="My Server" \
    -e WORLD_NAME="Neotopia" \
    -e SERVER_PASS="secret" \
    lloesche/valheim-server

Docker+systemd example

Create an optional config file /etc/sysconfig/valheim-server

SERVER_NAME="My Server"
SERVER_PORT=2456
WORLD_NAME=Dedicated
SERVER_PASS=secret
SERVER_PUBLIC=1
$ sudo mkdir /etc/valheim
$ sudo curl -o /etc/systemd/system/valheim-server.service https://raw.githubusercontent.com/lloesche/valheim-server-docker/master/valheim-server.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable valheim-server.service
$ sudo systemctl start valheim-server.service