Switched config to environment variables

pull/3/head
Jef Roosens 2020-12-30 13:00:24 +01:00
parent a6e5d39811
commit dd41150ee1
4 changed files with 9 additions and 6 deletions

View File

@ -0,0 +1 @@
FABRIC_VERSION=

View File

@ -4,8 +4,8 @@ services:
build:
context: .
args:
- 'FABRIC_VERSION=0.6.1.51'
image: 'mc-fabric-server:latest'
- 'FABRIC_VERSION=${FABRIC_VERSION}'
image: 'mc-fabric-server:${FABRIC_VERSION}'
restart: 'unless-stopped'
stdin_open: true

View File

@ -0,0 +1,2 @@
MC_VERSION=
PAPERMC_VERSION=

View File

@ -1,13 +1,13 @@
version: "3.5"
version: '3.5'
services:
papermc:
build:
context: .
dockerfile: Dockerfile
args:
- 'MC_VERSION='
- 'PAPERMC_VERSION='
image: 'mc-papermc-server:latest'
- 'MC_VERSION=${MC_VERSION}'
- 'PAPERMC_VERSION=${PAPERMC_VERSION}'
image: 'mc-papermc-server:${MC_VERSION}-${PAPERMC_VERSION}'
restart: unless-stopped
stdin_open: true