24 lines
611 B
YAML
24 lines
611 B
YAML
version: '3.5'
|
|
services:
|
|
papermc:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- 'MC_VERSION=${MC_VERSION}'
|
|
- 'PAPERMC_VERSION=${PAPERMC_VERSION}'
|
|
image: 'mc-papermc-server:${MC_VERSION}-${PAPERMC_VERSION}'
|
|
|
|
restart: unless-stopped
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
environment:
|
|
- XMS=4
|
|
- XMX=4
|
|
ports:
|
|
- '25565:25565'
|
|
volumes:
|
|
- '/data/mc/papermc/worlds:/minecraft/worlds'
|
|
- '/data/mc/papermc/config:/minecraft/config'
|