mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-05 16:29:49 +00:00
Added forge example compose file
This commit is contained in:
1 parent
f9defda106
commit
757a5146a1
1 file changed
+23
@@ -0,0 +1,23 @@
|
|||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mc:
|
||||||
|
image: itzg/minecraft-server
|
||||||
|
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)
|
||||||
|
TYPE: FORGE
|
||||||
|
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
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
# declared the named volume, but use default/local storage engine
|
||||||
|
mc_forge: {}
|
||||||
Reference in new issue
Block a user