mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
33494c0e29
Adding tty makes sure docker attach won't be accidentally detached by ctrl-C (there are better ways of doing this but this one works for now) shell-words more closely emulates Bash's tokenizer rules (but without doing things like environment variable expansion) which allows us to use multiline strings as reasons, etc. Unfortunately entering newlines still won't work the way we've written things since shell-words does not right now give enough information to incrementally build up a valid string, just says there was a tokenizing error; but maybe in the future we can fix that.
22 lines
573 B
YAML
22 lines
573 B
YAML
version: "3.5"
|
|
|
|
services:
|
|
game-server:
|
|
image: registry.gitlab.com/veloren/veloren/server-cli:nightly
|
|
stdin_open: true
|
|
tty: true
|
|
container_name: veloren-game-server-master
|
|
ports:
|
|
- "14004:14004"
|
|
- "14005:14005"
|
|
restart: on-failure:0
|
|
volumes:
|
|
- "./userdata:/opt/userdata"
|
|
environment:
|
|
- RUST_LOG=debug,common::net=info
|
|
watchtower:
|
|
image: containrrr/watchtower
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command: --interval 30 --stop-timeout 130s --cleanup veloren-game-server-master
|