mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
add watchtower support and fix CMD in Dockerfile
This commit is contained in:
parent
f80ea7bd39
commit
48b5977551
@ -7,4 +7,4 @@ COPY ./assets/common /opt/assets/common
|
|||||||
COPY ./assets/world /opt/assets/world
|
COPY ./assets/world /opt/assets/world
|
||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
CMD ["RUST_LOG=info,common=debug,common::net=info RUST_BACKTRACE=1 /opt/veloren-server-cli"]
|
CMD [ "sh", "-c", "RUST_LOG=info,common=debug,common::net=info RUST_BACKTRACE=1 /opt/veloren-server-cli" ]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: "3.7"
|
version: "3.5"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
game-server:
|
game-server:
|
||||||
@ -11,7 +11,14 @@ services:
|
|||||||
update_config:
|
update_config:
|
||||||
parallelism: 2
|
parallelism: 2
|
||||||
delay: 10s
|
delay: 10s
|
||||||
order: stop-first
|
order: stop-first
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /root/.docker/config.json:/config.json
|
||||||
|
command: --interval 30 --cleanup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user