diff --git a/swarm-compose.minecraft.yml b/swarm-compose.minecraft.yml index 3d32dbb..8ac0922 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: ["/bin/bash", "-c", "/start && export CF_API_KEY=$$(cat /run/secrets/cf_api_key)"] 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