feat(dc): introduce variable for POSTGRES_HOST and POSTGRES_PORT

This commit is contained in:
Radu C. Martin 2025-05-28 07:54:10 +00:00
parent c0a5672dd7
commit 10a9686f4d

View file

@ -2,7 +2,7 @@ services:
umami: umami:
image: ghcr.io/umami-software/umami:postgresql-v2.17.0@sha256:837eb91c54200f6f087e5c21d5f050ceb3b659eed49af91402dac04dd53bbac1 image: ghcr.io/umami-software/umami:postgresql-v2.17.0@sha256:837eb91c54200f6f087e5c21d5f050ceb3b659eed49af91402dac04dd53bbac1
environment: 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 DATABASE_TYPE: postgresql
APP_SECRET: ${DC_UMAMI_APP_SECRET:?} APP_SECRET: ${DC_UMAMI_APP_SECRET:?}
depends_on: depends_on:
@ -17,7 +17,7 @@ services:
retries: 5 retries: 5
labels: labels:
- "traefik.enable=true" - "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.routers.umami.entrypoints=websecure"
- "traefik.http.services.umami.loadbalancer.server.port=3000" - "traefik.http.services.umami.loadbalancer.server.port=3000"
- "traefik.http.middlewares.umami-headers.headers.customrequestheaders.X-Forwarded-Proto=https" - "traefik.http.middlewares.umami-headers.headers.customrequestheaders.X-Forwarded-Proto=https"