diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8fce603 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +data/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93dba0c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/**/* diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml index 707d016..604856e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,14 @@ version: "2.1" services: vrising: + build: + context: . 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/ + - ./data:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves + - ./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 \ No newline at end of file + tty: true diff --git a/readme.md b/readme.md index b95d207..fe3f98a 100644 --- a/readme.md +++ b/readme.md @@ -12,14 +12,9 @@ cd V-Rising-Docker-Linux 3. Modify the ServerGameSettings.json and ServerHostSettings.json for whatever you want. -4. Move all the files in /settings/ to some location. +4. Modify docker compose, set a path for where you want your saves. Set the save and settings directories -4. Build the image -sudo docker build . -t vrising:latest - -5. Modify docker compose, set a path for where you want your saves. Set the save and settings directories - -6. compose +5. Build and Start Container sudo docker-compose up -d 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!