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..."
|
echo ">>> Baue Multiplatform Docker Image und pushe..."
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64 \
|
||||||
--build-arg BUILD_DATE="${BUILD_DATE}" \
|
--build-arg BUILD_DATE="${BUILD_DATE}" \
|
||||||
-t "${FULL_IMAGE}" \
|
-t "${FULL_IMAGE}" \
|
||||||
--push \
|
--push \
|
||||||
|
|||||||
+16
-5
@@ -9,14 +9,25 @@ services:
|
|||||||
DB_PATH: /app/data/arbeitszeit.db
|
DB_PATH: /app/data/arbeitszeit.db
|
||||||
volumes:
|
volumes:
|
||||||
- arbeitszeit_data:/app/data
|
- arbeitszeit_data:/app/data
|
||||||
ports:
|
labels:
|
||||||
- "127.0.0.1:${APP_PORT:-3000}:3000"
|
- 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:
|
networks:
|
||||||
- arbeitszeit_net
|
- proxy
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
arbeitszeit_data:
|
arbeitszeit_data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
arbeitszeit_net:
|
proxy:
|
||||||
driver: bridge
|
name: dockge_default
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user