This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/minecraft/fabric/docker-compose.yml

29 lines
626 B
YAML
Raw Normal View History

2020-12-30 12:24:21 +01:00
version: '3.5'
services:
2021-01-26 14:05:59 +01:00
app:
2020-12-30 12:24:21 +01:00
build:
context: .
args:
- 'BASE_IMAGE'
2021-01-26 14:05:59 +01:00
- 'FABRIC_VERSION'
- 'MC_VERSION'
2021-01-26 14:05:59 +01:00
image: 'chewingbever/mc-fabric:${MC_VERSION}-${FABRIC_VERSION}'
2020-12-30 12:24:21 +01:00
2021-01-26 14:05:59 +01:00
restart: 'always'
2020-12-30 12:24:21 +01:00
stdin_open: true
tty: true
environment:
- XMS
- XMX
2020-12-30 12:24:21 +01:00
ports:
- '$PORT:25565'
2020-12-30 12:24:21 +01:00
volumes:
2021-01-26 14:05:59 +01:00
- '$CONFIG_DIR:/app/config'
- '$WORLDS_DIR:/app/worlds'
# These volumes only get created if you use them in the env file
volumes:
config:
worlds: