deployment/stacks/paper.yml

40 lines
768 B
YAML

version: '3.4'
services:
app:
image: 'chewingbever/mc-paper:1.18.2-305'
build:
context: paper
args:
- 'BASE_IMAGE=openjdk:17-slim'
- 'MC_VERSION=1.18.2'
- 'PAPERMC_VERSION=305'
# 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 Minecraft server can never choke my Gitea completely
resources:
limits:
cpus: '4.0'
environment:
- 'XMS=4'
- 'XMX=8'
ports:
- '25565:25565'
volumes:
- 'config:/app/config'
- 'worlds:/app/worlds'
volumes:
config:
worlds: