2021-12-27 18:28:57 +01:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2022-09-25 17:52:28 +02:00
|
|
|
image: 'git.rustybever.be/chewing_bever/mc-paper:1.19.2-173'
|
2021-12-27 18:28:57 +01:00
|
|
|
build:
|
|
|
|
context: paper
|
|
|
|
args:
|
2022-09-25 17:52:28 +02:00
|
|
|
- 'MC_VERSION=1.19.2'
|
|
|
|
- 'PAPERMC_VERSION=173'
|
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:52:28 +02:00
|
|
|
- 'node.labels.class==papermc'
|
2021-12-27 18:28:57 +01:00
|
|
|
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:
|