Minimal Ubuntu 22.04 container with wine and dotnet packages
Goal is to run a dedicated game server.
In this case: a V-Rising dedicated server
Refer to https://github.com/StunlockStudios/vrising-dedicated-server-instructions for json configuration settings.
-
Configuration settings are still those in /path/on/host/dedicatedserverfiles/VRisingServer_Data/StreamingAssets/Settings
so NOT those in /persistentdata. -
If you forward ports, you can only use direct connect.
If you want to see the server in the server list and want to use 27015-27016/UDP for example,
you'll need to change the ports in the ServerHostSettings.json file to 27015 and 27016.
And then just expose ports-p 27015:27015/udp
-p 27016:27016/udp -
If you want to continue from your local game, stop the container, overwrite the persistentdata
contents, and relaunch the server.
-- I have chmod 777 that folder on my dockerhost.
-- I can access my docker volumes via samba, so I was able to copy those files via windows.
Environment Variable | Key | Description |
---|---|---|
TZ | Europe/Brussels | timezone for ntpdate |
SERVERNAME | published servername | mandatory setting that overrules the ServerHostSettings.json entry |
WORLDNAME | optional worldname | default = world1. No real need to alter this. saves will be in a subdir WORLDNAME |
Exposed Container port | Type |
---|---|
9876 | UDP |
9877 | UDP |
Volume | Container path | Description |
---|---|---|
steam install path | /mnt/vrising/server | path to hold the dedicated server files |
world | /mnt/vrising/persistentdata | path that holds the world files |
docker run -d --name='vrising' \
--net='bridge' \
-e TZ="Europe/Paris" \
-e SERVERNAME="trueosiris-V" \
-v '/path/on/host/dedicatedserverfiles':'/mnt/vrising/server':'rw' \
-v '/path/on/host/persistentdata':'/mnt/vrising/persistentdata':'rw' \
-p 9876:9876/udp \
-p 9877:9877/udp \
'trueosiris/vrising'
version: '3.3'
services:
vrising:
container_name: vrising
image: trueosiris/vrising
network_mode: bridge
environment:
- TZ=Europe/Paris
- SERVERNAME=vrisingDocker
volumes:
- './server:/mnt/vrising/server:rw'
- './data:/mnt/vrising/persistentdata:rw'
ports:
- '9876/udp:9876/udp'
- '9877/udp:9877/udp'
github repo: https://github.com/TrueOsiris/docker-vrising
dockerhub repo: https://hub.docker.com/repository/docker/trueosiris/vrising