fix postgres healtcheck

This commit is contained in:
Philipp Rothmann 2023-06-14 14:59:03 +02:00 committed by Christian Galo
parent 4714122197
commit 183becfd87
1 changed files with 3 additions and 3 deletions

View File

@ -16,13 +16,13 @@ services:
networks: networks:
- internal - internal
environment: environment:
POSTGRES_USER: nextcloud POSTGRES_USER: nextcloud
POSTGRES_PASSWORD_FILE: /run/secrets/db_password POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: nextcloud POSTGRES_DB: nextcloud
secrets: secrets:
- db_password - db_password
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready"] test: ["CMD-SHELL", "pg_isready", "-U", "nextcloud"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5