42 lines
791 B
YAML
42 lines
791 B
YAML
version: '3.4'
|
|
|
|
services:
|
|
app:
|
|
image: 'git.rustybever.be/chewing_bever/mc-paper:1.19.4-550'
|
|
build:
|
|
context: paper
|
|
args:
|
|
- 'MC_VERSION=1.19.4'
|
|
- 'PAPERMC_VERSION=550'
|
|
|
|
# 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:
|
|
- 'ALEX_XMS=4096'
|
|
- 'ALEX_XMX=8192'
|
|
- 'ALEX_MAX_BACKUPS=28'
|
|
- 'ALEX_FREQUENCY=360'
|
|
ports:
|
|
- '25565:25565'
|
|
volumes:
|
|
- 'config:/app/config'
|
|
- 'worlds:/app/worlds'
|
|
- 'backups:/app/backups'
|
|
|
|
volumes:
|
|
config:
|
|
worlds:
|
|
backups:
|