From 098820f29ca3681ac960c6da7f0ef3e0c3da3ece Mon Sep 17 00:00:00 2001 From: Jasper Spahl Date: Mon, 23 Nov 2026 22:08:20 +0000 Subject: [PATCH] feat: add support for Minecraft (#155) * [x] I have deployed and tested my changes * [x] I have [updated relevant versions in `abra.sh`](https://docs.coopcloud.tech/maintainers/upgrade/#updating-versions-in-the-abrash) * [x] I have made my environment variable changes [backwards compatible](https://docs.coopcloud.tech/maintainers/upgrade/#backwards-compatible-environment-variable-changes) * [ ] I have added a [release note entry](https://docs.coopcloud.tech/maintainers/upgrade/#creating-new-release-notes) Reviewed-on: https://git.coopcloud.tech/coop-cloud/traefik/pulls/155 Co-authored-by: Jasper Spahl --- .env.sample | 4 ++++ abra.sh | 2 +- compose.minecraft.yml | 10 ++++++++++ traefik.yml.tmpl | 4 ++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 compose.minecraft.yml diff --git a/.env.sample b/.env.sample index e4e0f04..8367cd0 100644 --- a/.env.sample +++ b/.env.sample @@ -199,6 +199,10 @@ WRITE_TIMEOUT=0s #COMPOSE_FILE="$COMPOSE_FILE:compose.mumble.yml" #MUMBLE_ENABLED=1 +## Minecraft +#COMPOSE_FILE="$COMPOSE_FILE:compose.minecraft.yml" +#MINECRAFT_ENABLED=1 + ## Matrix #COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml" #MATRIX_FEDERATION_ENABLED=1 diff --git a/abra.sh b/abra.sh index 7370edf..05e03f8 100644 --- a/abra.sh +++ b/abra.sh @@ -1,4 +1,4 @@ -export TRAEFIK_YML_VERSION=v37 +export TRAEFIK_YML_VERSION=v38 export FILE_PROVIDER_YML_VERSION=v14 export ENTRYPOINT_VERSION=v5 export ANUBIS_YML_VERSION=v1 diff --git a/compose.minecraft.yml b/compose.minecraft.yml new file mode 100644 index 0000000..2f839a0 --- /dev/null +++ b/compose.minecraft.yml @@ -0,0 +1,10 @@ +version: "3.8" +services: + app: + environment: + - MINECRAFT_ENABLED + ports: + - target: 25565 + published: 25565 + protocol: tcp + mode: host diff --git a/traefik.yml.tmpl b/traefik.yml.tmpl index 08de379..31e21f1 100644 --- a/traefik.yml.tmpl +++ b/traefik.yml.tmpl @@ -143,6 +143,10 @@ entrypoints: metrics-internal: address: ":8082" {{- end }} + {{- if eq (env "MINECRAFT_ENABLED") "1" }} + minecraft: + address: ":25565" + {{- end }} ping: entryPoint: web