diff --git a/server-cli/Dockerfile b/server-cli/Dockerfile index 1dcdbcac34..ee9c4009a5 100644 --- a/server-cli/Dockerfile +++ b/server-cli/Dockerfile @@ -7,4 +7,4 @@ COPY ./assets/common /opt/assets/common COPY ./assets/world /opt/assets/world 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" ] diff --git a/server-cli/docker-compose.yml b/server-cli/docker-compose.yml index ba9badf7de..d4e52b364f 100644 --- a/server-cli/docker-compose.yml +++ b/server-cli/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.7" +version: "3.5" services: game-server: @@ -11,7 +11,14 @@ services: update_config: parallelism: 2 delay: 10s - order: stop-first + order: stop-first failure_action: rollback restart_policy: 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 +