Fix SERVICE_FQDN variable: use COUCHDB (no port) at top of environment

This commit is contained in:
Julien Calixte
2026-03-21 09:23:57 +01:00
parent f6ea118e47
commit 0ba150f356

View File

@@ -3,14 +3,14 @@ services:
image: couchdb:3 image: couchdb:3
restart: unless-stopped restart: unless-stopped
environment: environment:
SERVICE_FQDN_COUCHDB:
COUCHDB_USER: ${COUCHDB_USER:-admin} COUCHDB_USER: ${COUCHDB_USER:-admin}
COUCHDB_PASSWORD: ${COUCHDB_PASSWORD:?COUCHDB_PASSWORD must be set} COUCHDB_PASSWORD: ${COUCHDB_PASSWORD:?COUCHDB_PASSWORD must be set}
SERVICE_FQDN_COUCHDB_5984:
volumes: volumes:
- couchdb_data:/opt/couchdb/data - couchdb_data:/opt/couchdb/data
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.couchdb.rule=Host(`${SERVICE_FQDN_COUCHDB_5984}`)" - "traefik.http.routers.couchdb.rule=Host(`${SERVICE_FQDN_COUCHDB}`)"
- "traefik.http.routers.couchdb.entrypoints=https" - "traefik.http.routers.couchdb.entrypoints=https"
- "traefik.http.routers.couchdb.tls=true" - "traefik.http.routers.couchdb.tls=true"
- "traefik.http.services.couchdb.loadbalancer.server.port=5984" - "traefik.http.services.couchdb.loadbalancer.server.port=5984"