deployment/stacks/paper.yml

40 lines
768 B
YAML
Raw Normal View History

2021-12-27 18:28:57 +01:00
version: '3.4'
services:
app:
2022-04-23 12:05:21 +02:00
image: 'chewingbever/mc-paper:1.18.2-305'
2021-12-27 18:28:57 +01:00
build:
context: paper
args:
- 'BASE_IMAGE=openjdk:17-slim'
2022-03-12 18:00:02 +01:00
- 'MC_VERSION=1.18.2'
2022-04-23 12:05:21 +02:00
- 'PAPERMC_VERSION=305'
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:
- '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'
2021-12-27 18:29:54 +01:00
volumes:
- 'config:/app/config'
- 'worlds:/app/worlds'
2021-12-27 18:28:57 +01:00
volumes:
config:
worlds: