feat(dc): move postgres to external db
This commit is contained in:
parent
10a9686f4d
commit
33c1fd8339
1 changed files with 0 additions and 30 deletions
|
@ -5,9 +5,6 @@ services:
|
||||||
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_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:
|
|
||||||
db:
|
|
||||||
condition: service_healthy
|
|
||||||
init: true
|
init: true
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -24,7 +21,6 @@ services:
|
||||||
- "traefik.http.middlewares.umami-headers.headers.customrequestheaders.X-Real-IP={{.Request.RemoteAddr}}"
|
- "traefik.http.middlewares.umami-headers.headers.customrequestheaders.X-Real-IP={{.Request.RemoteAddr}}"
|
||||||
- "traefik.http.routers.umami.middlewares=umami-headers@docker"
|
- "traefik.http.routers.umami.middlewares=umami-headers@docker"
|
||||||
networks:
|
networks:
|
||||||
- umami
|
|
||||||
- traefik
|
- traefik
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
|
@ -32,32 +28,6 @@ services:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
|
|
||||||
db:
|
|
||||||
image: postgres:17.5@sha256:6efd0df010dc3cb40d5e33e3ef84acecc5e73161bd3df06029ee8698e5e12c60
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: ${DC_UMAMI_PG_DB:?}
|
|
||||||
POSTGRES_USER: ${DC_UMAMI_PG_USR:?}
|
|
||||||
POSTGRES_PASSWORD: ${DC_UMAMI_PG_PASS:?}
|
|
||||||
volumes:
|
|
||||||
- db-data:/var/lib/postgresql/data
|
|
||||||
restart: always
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
networks:
|
|
||||||
- umami
|
|
||||||
logging:
|
|
||||||
driver: "json-file"
|
|
||||||
options:
|
|
||||||
max-size: "100m"
|
|
||||||
max-file: "3"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
db-data:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true # This connects to the external network used by Traefik
|
external: true # This connects to the external network used by Traefik
|
||||||
umami:
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue