no more room in hell dedicated server in docker
I use this to create a private, dedicated server for playing with friends, allowing us to relive the cherished memories of our childhood.
Start server with default server config or edit server config instead.
docker run -d -i -t --name nmrih-server \
-p 27015:27015/udp \
-e SV_HOSTNAME="server-name" \
-e SV_PASSWORD="1234" \
ghcr.io/karnzx/nmrih-docker:latest
Should be run with minimum port 20175/udp
or you can expose 27015
and 27020/udp
too if you want.
docker run -d -i -t --name nmrih-server \
-p 27015:27015/udp \
-p 27015:27015 \
-p 27020:27020/udp \
--restart=unless-stopped \
ghcr.io/karnzx/nmrih-docker:latest
If use persistence volume be sure that directory user owner id is 1000, severfiles stored at /home/steam/nmrih/
docker run -d -i -t --name nmrih-server \
-p 27015:27015/udp \
-v ./nmrih:/home/steam/nmrih/ \
--restart=unless-stopped \
ghcr.io/karnzx/nmrih-docker:latest
Restart by run
docker restart nmrih-server
Delete by run (force remove nmrih-server container)
docker rm -f nmrih-server
Using server console so you can run commands directly by run docker attach
Note: Detach by press Ctrl+P+Q
docker attach nmrih-server
edit server.cfg
in nmrih/nmrih/cfg/server.cfg
docker exec -i -t nmrih-server nano nmrih/nmrih/cfg/server.cfg