From daedaa5f2b042522e6953824494ad64deff12bd6 Mon Sep 17 00:00:00 2001 From: Jasper Spahl Date: Sat, 7 Nov 2026 18:17:16 +0100 Subject: [PATCH 1/2] feat: add support for minecraft --- .env.sample | 4 ++++ abra.sh | 2 +- compose.minecraft.yml | 9 +++++++++ traefik.yml.tmpl | 4 ++++ 4 files changed, 18 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..a9771df --- /dev/null +++ b/compose.minecraft.yml @@ -0,0 +1,9 @@ +version: "3.8" +services: + app: + environment: + - MINECRAFT_ENABLED + ports: + - target: 25565 + published: 25565 + protocol: tcp 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 -- 2.54.0 From 7b64218cfcba6ded6d258f4ad839d94aed3a4a0b Mon Sep 17 00:00:00 2001 From: Jasper Spahl Date: Sat, 7 Nov 2026 19:13:40 +0100 Subject: [PATCH 2/2] fix(minecraft): fix port mode --- compose.minecraft.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.minecraft.yml b/compose.minecraft.yml index a9771df..2f839a0 100644 --- a/compose.minecraft.yml +++ b/compose.minecraft.yml @@ -7,3 +7,4 @@ services: - target: 25565 published: 25565 protocol: tcp + mode: host -- 2.54.0