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

25 lines
663 B
YAML
Raw Permalink Normal View History

2021-05-14 03:51:47 +00:00
version: "3.8"
2020-04-19 18:47:14 +00:00
services:
mc:
image: itzg/minecraft-server
2020-04-19 18:47:14 +00:00
ports:
# expose the Minecraft server port outside of container
- "25565:25565"
2020-04-19 18:47:14 +00:00
environment:
# REQUIRED for all types
EULA: "TRUE"
# Set server type (vs the default of vanilla)
TYPE: FORGE
DEBUG: "true"
2020-04-19 18:47:14 +00:00
volumes:
# use a named, managed volume for data volume
- mc_forge:/data
# attach local host directory "mods" in same directory as this compose file
# all mods in this directory get copied into /data/mods at startup
- ./mods:/mods:ro
2020-04-19 18:47:14 +00:00
volumes:
# declared the named volume, but use default/local storage engine
mc_forge: {}