Added -d parameter for dbname to postgres-container healthcheck otherwise pg_isready fails everytime.

See: https://www.postgresql.org/docs/10/app-pg-isready.html
This commit is contained in:
Sebastian 2021-11-08 17:29:52 +01:00
parent 6cabc96f75
commit 1e8f867154

View File

@ -12,7 +12,7 @@ services:
POSTGRES_PASSWORD: kemal
POSTGRES_USER: kemal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER $$POSTGRES_DB"]
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
invidious:
build:
context: .