add: custom postgress data path for coolify docker compose

This commit is contained in:
2025-11-25 19:13:26 +01:00
parent 615f2dbb8d
commit 064f864bdb
3 changed files with 22 additions and 5 deletions

View File

@@ -9,7 +9,9 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-wishlistpassword}
POSTGRES_DB: ${POSTGRES_DB:-wishlist}
volumes:
- postgres_data:/var/lib/postgresql/data
- type: bind
source: ${POSTGRES_DATA_PATH}
target: /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-wishlistuser} -d ${POSTGRES_DB:-wishlist}"]
interval: 10s
@@ -47,6 +49,3 @@ services:
- traefik.http.middlewares.wishlist-headers.headers.customrequestheaders.X-Forwarded-Proto=https
- traefik.http.middlewares.wishlist-headers.headers.customrequestheaders.X-Forwarded-Host=wish.rasmusq.com
- traefik.http.routers.wishlist.middlewares=wishlist-headers
volumes:
postgres_data: