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/forge/docker-compose.yml

28 lines
592 B
YAML

version: '3.5'
services:
app:
build:
context: .
args:
- 'MC_VERSION'
- 'FORGE_VERSION'
image: 'chewingbever/mc-forge:${MC_VERSION}-${FORGE_VERSION}'
restart: 'always'
stdin_open: true
tty: true
environment:
- XMS
- XMX
ports:
- '$PORT:25565'
volumes:
- '$CONFIG_DIR:/app/config'
- '$WORLDS_DIR:/app/worlds'
# These volumes only get created if you use them in the env file
volumes:
config:
worlds: