From 78fe916c2ff63b6ab0a449b2285bfe6d55708cc6 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 1 Jun 2026 21:24:34 +0200 Subject: [PATCH] fix: hardcode host and Coolify network UUID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b0c6f8a..82c8f5d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,8 +15,8 @@ services: - coolify labels: - "traefik.enable=true" - - "traefik.docker.network=${COOLIFY_RESOURCE_UUID}" - - "traefik.http.routers.coolcouch.rule=Host(`${SERVICE_FQDN_COUCHDB_5984}`)" + - "traefik.docker.network=lvw8efvnvsxduodrkg68zul3" + - "traefik.http.routers.coolcouch.rule=Host(`couch.apoena.dev`)" - "traefik.http.routers.coolcouch.entrypoints=https" - "traefik.http.routers.coolcouch.tls=true" - "traefik.http.services.coolcouch.loadbalancer.server.port=5984" @@ -68,7 +68,7 @@ services: networks: coolify: external: true - name: ${COOLIFY_RESOURCE_UUID} + name: lvw8efvnvsxduodrkg68zul3 volumes: couchdb_data: