deployment/stacks/tshock.yml

39 lines
721 B
YAML
Raw Normal View History

2022-08-25 14:18:43 +02:00
version: '3.4'
services:
app:
image: 'git.rustybever.be/chewing_bever/tshock:4.5.18'
build:
context: tshock
args:
- 'RELEASE_TAG=v4.5.18'
# These are necessary to make the console work
stdin_open: true
tty: true
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==gitea'
# This makes sure the server can never choke my Gitea completely
resources:
limits:
cpus: '4.0'
environment:
- 'AUTOCREATE=2'
ports:
- '7777:7777'
volumes:
- 'logs:/app/logs'
- 'config:/app/config'
- 'worlds:/app/worlds'
volumes:
logs:
config:
worlds: