Skip to content

Commit 236ed74

Browse files
Add an Example of Setting Up GregTech: New Horizons (#3212)
1 parent 05cbbfc commit 236ed74

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

examples/gtnh/docker-compose.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
services:
2+
mc:
3+
# make sure this java version matches with pack java version
4+
image: itzg/minecraft-server:java21
5+
tty: true
6+
stdin_open: true
7+
ports:
8+
- "25565:25565"
9+
environment:
10+
EULA: "TRUE"
11+
TYPE: CUSTOM
12+
GENERIC_PACKS: GT_New_Horizons_2.7.1_Server_Java_17-21
13+
GENERIC_PACKS_SUFFIX: .zip
14+
GENERIC_PACKS_PREFIX: https://downloads.gtnewhorizons.com/ServerPacks/
15+
# if this isn't true, then the container tries to download the modpack every run
16+
: "true"
17+
# Make sure that this matches what is in your pack's startserver bash file
18+
CUSTOM_JAR_EXEC: "-Xms6G -Xmx6G -Dfml.readTimeout=180 @java9args.txt -jar lwjgl3ify-forgePatches.jar nogui"
19+
volumes:
20+
# attach the relative directory 'data' to the container's /data path
21+
- mc-data:/data
22+
volumes:
23+
mc-data:

0 commit comments

Comments
 (0)