deployment/stacks/paper.yml

37 lines
697 B
YAML

version: '3.4'
services:
app:
image: 'chewingbever/mc-paper:1.18.1-103'
build:
context: paper
args:
- 'BASE_IMAGE=openjdk:17-slim'
- 'MC_VERSION=1.18.1'
- 'PAPERMC_VERSION=103'
# 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:
worlds: