docker-minecraft-server/examples/docker-compose-forge.yml

24 lines
651 B
YAML
Raw Normal View History

2020-04-19 18:47:14 +00:00
version: "3.7"
services:
mc:
2020-05-31 23:39:53 +00:00
# FTBA support is only available in multiarch image tag
image: itzg/minecraft-server:multiarch
2020-04-19 18:47:14 +00:00
ports:
# expose the Minecraft server port outside of container
- 25565:25565
environment:
# REQUIRED for all types
EULA: "TRUE"
# Set server type (vs the default of vanilla)
2020-05-31 23:39:53 +00:00
TYPE: FTBA
# Use Pack ID from https://ftb.neptunepowered.org/pack/ftb-presents-direwolf20-1-12/
FTB_MODPACK_ID: "31"
2020-04-19 18:47:14 +00:00
volumes:
# use a named, managed volume for data volume
2020-05-31 23:39:53 +00:00
- mc_ftb:/data
2020-04-19 18:47:14 +00:00
volumes:
# declared the named volume, but use default/local storage engine
2020-05-31 23:39:53 +00:00
mc_ftb: {}