This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-04-23 14:43:53 +02:00
|
|
|
version: '2.0'
|
2020-12-30 12:53:37 +01:00
|
|
|
services:
|
2021-01-26 12:57:29 +01:00
|
|
|
app:
|
2020-12-30 12:53:37 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2021-02-02 12:56:54 +01:00
|
|
|
- 'BASE_IMAGE'
|
2021-01-13 14:21:38 +01:00
|
|
|
- 'MC_VERSION'
|
|
|
|
- 'PAPERMC_VERSION'
|
2021-04-23 14:43:53 +02:00
|
|
|
image: 'localhost:5000/mc-papermc:${MC_VERSION}-${PAPERMC_VERSION}'
|
2021-01-13 14:21:38 +01:00
|
|
|
restart: 'always'
|
2020-12-30 12:53:37 +01:00
|
|
|
|
2021-01-13 14:21:38 +01:00
|
|
|
# Needed to interact with server console
|
2020-12-30 12:53:37 +01:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
|
|
|
|
environment:
|
2021-01-13 14:21:38 +01:00
|
|
|
- 'XMS'
|
|
|
|
- 'XMX'
|
2020-12-30 12:53:37 +01:00
|
|
|
ports:
|
2020-12-30 15:57:45 +01:00
|
|
|
- '$PORT:25565'
|
2020-12-30 12:53:37 +01:00
|
|
|
volumes:
|
2021-01-13 14:21:38 +01:00
|
|
|
- '$CONFIG_DIR:/app/config'
|
|
|
|
- '$WORLDS_DIR:/app/worlds'
|
|
|
|
|
2021-01-26 12:57:29 +01:00
|
|
|
# These volumes only get created if you use them in the env file
|
2021-01-13 14:21:38 +01:00
|
|
|
volumes:
|
|
|
|
config:
|
|
|
|
worlds:
|