deployment/stacks/paper.yml

43 lines
938 B
YAML
Raw Normal View History

2021-12-27 18:28:57 +01:00
version: '3.4'
services:
app:
2023-06-13 13:55:36 +02:00
image: 'git.rustybever.be/chewing_bever/mc-paper:1.19.4-550'
2021-12-27 18:28:57 +01:00
build:
context: paper
args:
2023-03-25 16:21:52 +01:00
- 'MC_VERSION=1.19.4'
2023-06-13 13:55:36 +02:00
- 'PAPERMC_VERSION=550'
2021-12-27 18:28:57 +01:00
# These are necessary to make the console work
stdin_open: true
tty: true
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
2022-09-25 17:54:55 +02:00
- 'node.labels.class.papermc==true'
2021-12-27 18:28:57 +01:00
resources:
limits:
cpus: '4.0'
environment:
2023-06-13 13:55:36 +02:00
- 'ALEX_XMS=4096'
- 'ALEX_XMX=8192'
2023-07-04 16:30:19 +02:00
# Backups every 30 minutes stored for a day for quick rollback in case of crash
# Daily full backups for 7 days for broader rollback if needed
2023-07-04 16:40:58 +02:00
- 'ALEX_LAYERS=30min,30,1,48;daily,1440,7,1'
2021-12-27 18:28:57 +01:00
ports:
- '25565:25565'
2021-12-27 18:29:54 +01:00
volumes:
- 'config:/app/config'
- 'worlds:/app/worlds'
2023-06-13 13:55:36 +02:00
- 'backups:/app/backups'
2021-12-27 18:28:57 +01:00
volumes:
config:
worlds:
2023-06-13 13:55:36 +02:00
backups: