Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ version: "2.1"
services:
vrising:
container_name: vrising-server
image: vrising:latest
volumes:
- /home/googlrr/VRisingServer:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves
- /home/googlrr/VRisingSettings:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Settings/
ports:
build: .
image: vrising-local:latest
volumes:
- /opt/vrising/server:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves
- /opt/vrising/settings:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Settings/
ports:
- "27015:27015/udp"
- "27016:27016/udp"
restart: unless-stopped
tty: true
tty: true
31 changes: 19 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,30 @@ using Wine in an ubuntu container

This isn't really meant to be a guide, just publishing because at the moment not much info on setting this up out there. I'm no docker expert so there's probably a better way to go about this. Sorry if these steps aren't 100% accurate:

1. Clone the repo
git clone https://github.com/Googlrr/V-Rising-Docker-Linux
1. Clone the repo
`git clone https://github.com/Googlrr/V-Rising-Docker-Linux`

2. CD to the directory
cd V-Rising-Docker-Linux
2. CD to the directory
`cd V-Rising-Docker-Linux`

3. Modify the ServerGameSettings.json and ServerHostSettings.json for whatever you want.
3. Modify the `ServerGameSettings.json` and `ServerHostSettings.json` to your liking.

4. Move all the files in /settings/ to some location.
4. Move the files in `settings/` to a new location (e.g. `/opt/vrising/settings/`).

5. Modify docker compose and set the save and settings volumes according to step 4 (e.g. `/opt/vrising/settings` and `/opt/vrising/server`)

4. Build the image
sudo docker build . -t vrising:latest
6. Start the server
`sudo docker-compose up -d `

5. Modify docker compose, set a path for where you want your saves. Set the save and settings directories
Really messy setup but this was the only way I could figure out how to work it lol. Never used Wine before. Hope for a native linux server soon!

6. compose
sudo docker-compose up -d
# Updating the server
Before and after updating the server it might be sensible to check the currently running version:
`docker logs vrising-server | grep "VRisingServer v" -A1 | tail -2`

Really messy setup but this was the only way I could figure out how to work it lol. Never used Wine before. Hope for a native linux server soon!
This container only downloads/updates the server application when `/root/.wine/drive_c/steamcmd/steaminstalled.txt` (which is created on first startup) does not exist inside the container. There are two ways to update the server:
- `docker exec vrising-server rm /root/.wine/drive_c/steamcmd/steaminstalled.txt && docker restart vrising-server`
to delete the file and restart the container, which updates the already installed server.

- `docker-compose up --build -d`
to recreate the container from scratch without `steaminstalled.txt`.