Prod-Compose für Traefik (arbeitszeit.fuerst-stuttgart.de)
- 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) <noreply@anthropic.com>
This commit is contained in:
@@ -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 \
|
||||
|
||||
+16
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user