services: app: image: registry.infra.mintel.me/mintel/klz-cables.com:latest restart: always networks: - infra labels: - "traefik.enable=true" # HTTP → HTTPS redirect - "traefik.http.routers.klz-cables-web.rule=Host(`klz-cables.com`) || Host(`www.klz-cables.com`)" - "traefik.http.routers.klz-cables-web.entrypoints=web" - "traefik.http.routers.klz-cables-web.middlewares=redirect-https" # HTTPS router - "traefik.http.routers.klz-cables.rule=Host(`klz-cables.com`) || Host(`www.klz-cables.com`)" - "traefik.http.routers.klz-cables.entrypoints=websecure" - "traefik.http.routers.klz-cables.tls.certresolver=le" - "traefik.http.services.klz-cables.loadbalancer.server.port=3000" # compression - "traefik.http.routers.klz-cables.middlewares=compress" healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] interval: 10s timeout: 5s retries: 3 start_period: 10s networks: infra: external: true