From 981ac09acd1d0a58757696c9fc292895b9e447be Mon Sep 17 00:00:00 2001 From: jarno Date: Fri, 17 Jan 2025 14:09:03 +0100 Subject: [PATCH] TEST: mod support --- swarm-compose.minecraft.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/swarm-compose.minecraft.yml b/swarm-compose.minecraft.yml index 3d32dbb..5bbc853 100644 --- a/swarm-compose.minecraft.yml +++ b/swarm-compose.minecraft.yml @@ -3,31 +3,34 @@ services: networks: - reverse_proxy_network - minecraft_network - image: itzg/minecraft-server + secrets: + - cf_api_key + image: itzg/minecraft-server:java8 tty: true stdin_open: true environment: EULA: "TRUE" MAX_MEMORY: "16G" - TYPE: "FABRIC" - VERSION: "SNAPSHOT" + TYPE: "FORGE" + VERSION: "1.12.2" DIFFICULTY: "hard" ICON: "https://jarnowieman.nl/api/files/minecraft/server_icon" MOTD: "§l§5WiemanServer§r\n§rWelcome to my server!" VANILLATWEAKS_SHARECODE: "cFTVFy,M6j9tu" DATAPACKS: "" - CF_API_KEY: $${CF_API_KEY} + CF_PAGE_URL: "https://www.curseforge.com/minecraft/modpacks/rlcraft/files/4612979" MAX_PLAYERS: "20" SNOOPER_ENABLED: "false" MAX_BUILD_HEIGHT: "256" SPAWN_PROTECTION: "0" VIEW_DISTANCE: "10" - LEVEL: "world" + LEVEL: "rlcraft" ALLOW_FLIGHT: "TRUE" SERVER_NAME: "WiemanServer" PLAYER_IDLE_TIMEOUT: "0" EXEC_DIRECTLY: "true" ENABLE_WHITELIST: "true" + entrypoint: "export CF_API_KEY=$$(cat /run/secrets/cf_api_key) && /start" volumes: - ./data/minecraft:/data ports: @@ -66,4 +69,8 @@ services: networks: reverse_proxy_network: external: true - minecraft_network: \ No newline at end of file + minecraft_network: + +secrets: + cf_api_key: + external: true \ No newline at end of file