Skip to content

Instantly share code, notes, and snippets.

@denzuko
Created October 20, 2019 19:16
Show Gist options
  • Save denzuko/742ef74d88cb413becd76721783945a8 to your computer and use it in GitHub Desktop.
Save denzuko/742ef74d88cb413becd76721783945a8 to your computer and use it in GitHub Desktop.
docker-minecraft server template
---
## Environment varables
### DATAVOLUME ::= :alphanum:
### NETWORK ::= <"public"|"internal">
### MODPACK_URL ::= <curseforge url, cdn url,>".zip"
version: '3.7'
volumes:
data:
external: true
name: ${DATAVOLUME}
networks:
default:
name: ${NETWORK}
external: true
services:
server:
image: itzg/minecraft-server
volumes:
- "data:/data"
environment:
EULA: "true"
TYPE: FTB
FTB_SERVER_MOD: ${MODPACK_URL}
ports:
- ${PORT}:25565
healthcheck:
test: ['CMD', 'mcstatus', 'localhost:25565', 'ping']
interval: 10m
timeout: 10s
retries: 3
start_period: 90m
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment