From 4f1a09b2a916f257d2005a3886097bf2e79fe5eb Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Thu, 16 Jan 2025 10:30:13 -0600 Subject: [PATCH] examples: adjust gtnh example to use MEMORY and JVM_OPTS (#3257) --- examples/gtnh/docker-compose.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/gtnh/docker-compose.yaml b/examples/gtnh/docker-compose.yaml index eaf5539c873..c243929a914 100644 --- a/examples/gtnh/docker-compose.yaml +++ b/examples/gtnh/docker-compose.yaml @@ -14,10 +14,12 @@ services: GENERIC_PACKS_PREFIX: https://downloads.gtnewhorizons.com/ServerPacks/ # if this isn't true, then the container tries to download the modpack every run SKIP_GENERIC_PACK_UPDATE_CHECK: "true" + MEMORY: 6G # Make sure that this matches what is in your pack's startserver bash file - CUSTOM_JAR_EXEC: "-Xms6G -Xmx6G -Dfml.readTimeout=180 @java9args.txt -jar lwjgl3ify-forgePatches.jar nogui" + JVM_OPTS: -Dfml.readTimeout=180 @java9args.txt + CUSTOM_JAR_EXEC: -jar lwjgl3ify-forgePatches.jar nogui volumes: - # attach the relative directory 'data' to the container's /data path + # attach a managed volume, change to a relative or absolute host directory if needed - mc-data:/data volumes: mc-data: \ No newline at end of file