Created
October 20, 2019 19:16
-
-
Save denzuko/742ef74d88cb413becd76721783945a8 to your computer and use it in GitHub Desktop.
docker-minecraft server template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
## 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