compose: default Traefik network to proxy
All checks were successful
build-and-push / docker (push) Successful in 9s
All checks were successful
build-and-push / docker (push) Successful in 9s
That's the actual network Traefik runs on; was defaulting to a non-existent `traefik` network, causing "network ... could not be found". Still overridable via TRAEFIK_NETWORK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
5dfe809eb2
commit
5e02caf013
1 changed files with 4 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
# App is on two networks; tell Traefik which one to reach it on.
|
# App is on two networks; tell Traefik which one to reach it on.
|
||||||
- "traefik.docker.network=${TRAEFIK_NETWORK:-traefik}"
|
- "traefik.docker.network=${TRAEFIK_NETWORK:-proxy}"
|
||||||
- "traefik.http.routers.printhive.rule=Host(`${PRINTHIVE_HOST:-printhive.plexultra.com}`)"
|
- "traefik.http.routers.printhive.rule=Host(`${PRINTHIVE_HOST:-printhive.plexultra.com}`)"
|
||||||
- "traefik.http.routers.printhive.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
|
- "traefik.http.routers.printhive.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
|
||||||
- "traefik.http.routers.printhive.tls.certresolver=${TRAEFIK_CERTRESOLVER:-letsencrypt}"
|
- "traefik.http.routers.printhive.tls.certresolver=${TRAEFIK_CERTRESOLVER:-letsencrypt}"
|
||||||
|
|
@ -57,8 +57,8 @@ volumes:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
# The existing Traefik network (same one your other services use).
|
# The existing Traefik network (the `proxy` network Traefik runs on).
|
||||||
# Set TRAEFIK_NETWORK in Dockhand to its exact name.
|
# Override with TRAEFIK_NETWORK if it ever changes.
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
name: ${TRAEFIK_NETWORK:-traefik}
|
name: ${TRAEFIK_NETWORK:-proxy}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue