mirror of
https://github.com/Merith-TK/docker-vintagestory
synced 2025-01-18 22:30:27 +00:00
updated README
This commit is contained in:
parent
c9c9622524
commit
84e498d3c1
1 changed files with 6 additions and 3 deletions
|
@ -11,6 +11,8 @@ You can either copy files from `https://github.com/Devidian/docker-vintagestory/
|
|||
- run `docker-compose up -d --build` to rebuild and restart
|
||||
- run `docker-compose down` to stop
|
||||
|
||||
We use `vs_data_path` as ARG because ENV did not get overridden in build phase and we use `VS_DATA_PATH` as ENV because ARG in CMD is empty.
|
||||
|
||||
## Dockerfile for custom-build
|
||||
|
||||
```docker
|
||||
|
@ -28,7 +30,7 @@ COPY serverconfig.json ${vs_data_path}/serverconfig.json
|
|||
|
||||
WORKDIR /game
|
||||
|
||||
CMD mono VintagestoryServer.exe --dataPath ${vs_data_path}
|
||||
CMD mono VintagestoryServer.exe --dataPath ${VS_DATA_PATH}
|
||||
|
||||
```
|
||||
|
||||
|
@ -42,14 +44,15 @@ services:
|
|||
build:
|
||||
context: .
|
||||
args:
|
||||
vs_data_path: /gamedata/vs-mods/
|
||||
vs_data_path: /gamedata/vs-custom/
|
||||
container_name: vsserver
|
||||
restart: always
|
||||
volumes:
|
||||
- gamedata:/gamedata
|
||||
ports:
|
||||
- 42420:42420
|
||||
|
||||
environment:
|
||||
VS_DATA_PATH: /gamedata/vs-custom
|
||||
volumes:
|
||||
gamedata:
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue