Moved all config to .env file; updated README

This commit is contained in:
Jef Roosens 2020-12-30 15:57:45 +01:00
parent 3e0e544ec7
commit 0ae84c0019
10 changed files with 79 additions and 19 deletions

View file

@ -1,4 +1,14 @@
# Build arguments
MC_VERSION=
PAPERMC_VERSION=
# Environment variables
XMS=4
XMX=4
# Mountpoints
CONFIG_DIR=
WORLDS_DIR=
# Other
PORT=25565

View file

@ -17,7 +17,7 @@ services:
- XMS
- XMX
ports:
- '25565:25565'
- '$PORT:25565'
volumes:
- '/data/mc/papermc/worlds:/minecraft/worlds'
- '/data/mc/papermc/config:/minecraft/config'
- '$CONFIG_DIR:/minecraft/config'
- '$WORLDS_DIR:/minecraft/worlds'