From 9887d5eedd6679e7c691c648ab96ed8103c005d7 Mon Sep 17 00:00:00 2001 From: Gabriel Peralta Date: Wed, 31 Jul 2024 00:50:13 -0400 Subject: [PATCH] Added minecraft-server (java) as template --- public/svgs/minecraft.svg | 1 + templates/compose/minecraft.yaml | 44 ++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 public/svgs/minecraft.svg create mode 100644 templates/compose/minecraft.yaml diff --git a/public/svgs/minecraft.svg b/public/svgs/minecraft.svg new file mode 100644 index 000000000..10ae9042c --- /dev/null +++ b/public/svgs/minecraft.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/compose/minecraft.yaml b/templates/compose/minecraft.yaml new file mode 100644 index 000000000..e00f891e9 --- /dev/null +++ b/templates/compose/minecraft.yaml @@ -0,0 +1,44 @@ +# documentation: https://github.com/itzg/docker-minecraft-server +# slogan: Docker image that provides a Minecraft Server that will automatically download selected version at startup. +# tags: minecraft +# logo: svgs/minecraft.svg +# port: 25565 + +services: + mc: + image: itzg/minecraft-server + ports: + - 25565:25565 + environment: + EULA: true + VERSIOn: latest + TYPE: vanilla + SERVER_NAME: Minecraft Server + MOTD: Minecraft Server powered by §aCoolify§r + DIFFICULTY: normal + MAX_PLAYERS: 10 + MAX_WORLD_SIZE: 10000 + VIEW_DISTANCE: 10 + MAX_BUILD_HEIGHT: 256 + MAX_TICK_TIME: 60000 + ALLOW_NETHER: true + ANNOUNCE_PLAYER_ACHIEVEMENTS: true + GENERATE_STRUCTURES: true + PVP: true + FORCE_GAMEMODE: false + HARDCORE: false + ENABLE_COMMAND_BLOCK: false + SPAWN_ANIMALS: true + SPAWN_MONSTERS: true + SPAWN_NPCS: true + SNOOPER_ENABLED: true + ONLINE_MODE: true + PLAYER_IDLE_TIMEOUT: 0 + MEMORY: 1G + ENABLE_AUTOPAUSE: false + tty: true + stdin_open: true + restart: always + volumes: + # attach a directory relative to the directory containing this compose file + - /minecraft-data:/data \ No newline at end of file