deployment/stacks/paper.yml

38 lines
674 B
YAML

version: '3.4'
services:
app:
image: 'git.rustybever.be/chewing_bever/mc-paper:1.19.4-471'
build:
context: paper
args:
- 'MC_VERSION=1.19.4'
- 'PAPERMC_VERSION=471'
# These are necessary to make the console work
stdin_open: true
tty: true
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.papermc==true'
resources:
limits:
cpus: '4.0'
environment:
- 'XMS=4'
- 'XMX=8'
ports:
- '25565:25565'
volumes:
- 'config:/app/config'
- 'worlds:/app/worlds'
volumes:
config:
worlds: