From 10a9686f4d2b2d4199121487ef06e77fc43fde7c Mon Sep 17 00:00:00 2001 From: radu Date: Wed, 28 May 2025 07:54:10 +0000 Subject: [PATCH] feat(dc): introduce variable for POSTGRES_HOST and POSTGRES_PORT --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b79f139..a1109a8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: umami: image: ghcr.io/umami-software/umami:postgresql-v2.17.0@sha256:837eb91c54200f6f087e5c21d5f050ceb3b659eed49af91402dac04dd53bbac1 environment: - DATABASE_URL: postgresql://${DC_UMAMI_PG_USR:?}:${DC_UMAMI_PG_PASS:?}@db:5432/${DC_UMAMI_PG_DB:?} + DATABASE_URL: postgresql://${DC_UMAMI_PG_USR:?}:${DC_UMAMI_PG_PASS:?}@${DC_UMAMI_PG_HOST:-db}:${DC_UMAMI_PG_PORT:-5432}/${DC_UMAMI_PG_DB:?} DATABASE_TYPE: postgresql APP_SECRET: ${DC_UMAMI_APP_SECRET:?} depends_on: @@ -17,7 +17,7 @@ services: retries: 5 labels: - "traefik.enable=true" - - "traefik.http.routers.umami.rule=Host(`${DC_UMAMI_HOSTNAME:?}`)" # replace this! + - "traefik.http.routers.umami.rule=Host(`${DC_UMAMI_HOSTNAME:?}`)" - "traefik.http.routers.umami.entrypoints=websecure" - "traefik.http.services.umami.loadbalancer.server.port=3000" - "traefik.http.middlewares.umami-headers.headers.customrequestheaders.X-Forwarded-Proto=https"