fix: update Traefik labels for frontend service in compose.yaml
All checks were successful
Auto-Deploy Changed Stacks / deploy (push) Successful in 12s

This commit is contained in:
Nathan 2026-06-21 18:00:19 -04:00
parent 8646a7e2c0
commit 6c96d84860

View File

@ -64,22 +64,18 @@ services:
frontend:
image: ghcr.io/teamcastaldi/jobsquatch-frontend:${IMAGE_TAG:-latest}
restart: unless-stopped
ports:
- "80:80"
depends_on:
app:
condition: service_healthy
labels:
# When a container is on multiple networks, Traefik picks one arbitrarily.
# Pin it to proxy-net so Traefik never tries to route via jobsquatch-internal.
traefik.enable: "true"
traefik.docker.network: proxy-net
- "traefik.enable=true"
- "traefik.http.routers.jobsquatch.rule=Host(`jobsquatch-alpha.castaldifamily.com`)"
- "traefik.http.routers.jobsquatch.entrypoints=websecure"
- "traefik.http.routers.jobsquatch.tls=true"
- "traefik.http.routers.jobsquatch.tls.certresolver=cloudflare"
- "traefik.http.routers.jobsquatch.middlewares=security-headers@file"
- "traefik.http.services.jobsquatch.loadbalancer.server.port=80"
traefik.http.routers.jobsquatch.rule: "Host(`jobsquatch-alpha.castaldifamily.com`)"
traefik.http.routers.jobsquatch.entrypoints: websecure
traefik.http.routers.jobsquatch.tls: "true"
traefik.http.routers.jobsquatch.tls.certresolver: cloudflare
traefik.http.routers.jobsquatch.middlewares: security-headers@file
traefik.http.services.jobsquatch.loadbalancer.server.port: "80"
networks:
- jobsquatch-internal
- proxy-net