From 0224e2d9d83c65c0945b9f2ecad9d232b8519763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Mon, 22 Jun 2026 11:05:20 +0200 Subject: [PATCH] =?UTF-8?q?Prod-Compose=20f=C3=BCr=20Traefik=20(arbeitszei?= =?UTF-8?q?t.fuerst-stuttgart.de)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Traefik-Labels statt Host-Port-Publishing - HTTP→HTTPS-Redirect, TLS am secure-Router - Container am externen Proxy-Netzwerk dockge_default Co-Authored-By: Claude Opus 4.8 (1M context) --- deploy.sh | 2 +- docker-compose.prod.yml | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/deploy.sh b/deploy.sh index 1c517f2..60b659b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -31,7 +31,7 @@ echo "" echo ">>> Baue Multiplatform Docker Image und pushe..." docker buildx build \ - --platform linux/amd64,linux/arm64 \ + --platform linux/amd64 \ --build-arg BUILD_DATE="${BUILD_DATE}" \ -t "${FULL_IMAGE}" \ --push \ diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 64a5cb6..5346db6 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -9,14 +9,25 @@ services: DB_PATH: /app/data/arbeitszeit.db volumes: - arbeitszeit_data:/app/data - ports: - - "127.0.0.1:${APP_PORT:-3000}:3000" + labels: + - traefik.enable=true + - traefik.docker.network=dockge_default + - traefik.http.routers.arbeitszeit.entrypoints=http + - traefik.http.routers.arbeitszeit.rule=Host(`arbeitszeit.fuerst-stuttgart.de`) + - traefik.http.middlewares.arbeitszeit-https-redirect.redirectscheme.scheme=https + - traefik.http.routers.arbeitszeit.middlewares=arbeitszeit-https-redirect + - traefik.http.routers.arbeitszeit-secure.entrypoints=https + - traefik.http.routers.arbeitszeit-secure.rule=Host(`arbeitszeit.fuerst-stuttgart.de`) + - traefik.http.routers.arbeitszeit-secure.tls=true + - traefik.http.routers.arbeitszeit-secure.service=arbeitszeit + - traefik.http.services.arbeitszeit.loadbalancer.server.port=3000 networks: - - arbeitszeit_net + - proxy volumes: arbeitszeit_data: networks: - arbeitszeit_net: - driver: bridge + proxy: + name: dockge_default + external: true