fix: hardcode host and Coolify network UUID
Coolify is preventing variable interpolation in compose labels — the
container's labels were stored literally as Host(\`\${SERVICE_FQDN_COUCHDB_5984}\`)
etc., so Traefik matched no router and fell back to default_redirect_503.
Variable substitution works in environment: (CouchDB env was correct),
just not in labels: — likely Coolify sets labels via the Docker API
after compose runs, bypassing compose interpolation. Hardcoding the host
and the per-resource network name is the only thing left that works.
This commit is contained in:
@@ -15,8 +15,8 @@ services:
|
|||||||
- coolify
|
- coolify
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=${COOLIFY_RESOURCE_UUID}"
|
- "traefik.docker.network=lvw8efvnvsxduodrkg68zul3"
|
||||||
- "traefik.http.routers.coolcouch.rule=Host(`${SERVICE_FQDN_COUCHDB_5984}`)"
|
- "traefik.http.routers.coolcouch.rule=Host(`couch.apoena.dev`)"
|
||||||
- "traefik.http.routers.coolcouch.entrypoints=https"
|
- "traefik.http.routers.coolcouch.entrypoints=https"
|
||||||
- "traefik.http.routers.coolcouch.tls=true"
|
- "traefik.http.routers.coolcouch.tls=true"
|
||||||
- "traefik.http.services.coolcouch.loadbalancer.server.port=5984"
|
- "traefik.http.services.coolcouch.loadbalancer.server.port=5984"
|
||||||
@@ -68,7 +68,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
coolify:
|
coolify:
|
||||||
external: true
|
external: true
|
||||||
name: ${COOLIFY_RESOURCE_UUID}
|
name: lvw8efvnvsxduodrkg68zul3
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
couchdb_data:
|
couchdb_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user