n8n Stack: fix db health check using wrong user

This commit is contained in:
Aroy-Art 2025-08-16 17:09:25 +02:00
parent 20e5e935a6
commit df8746063e
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -40,7 +40,7 @@ services:
- POSTGRES_DB=${DB_NAME:-n8n}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-n8n} -d ${DB_NAME:-n8n}"]
interval: 10s
timeout: 5s
retries: 5