Fix "fatal role postgres doesn't exist"

Fix a frequent error with recent postgres docker images:
`FATAL:  role "postgres" does not exist`
This commit is contained in:
Samantaz Fox 2021-08-02 16:06:02 +02:00 committed by GitHub
parent c76bd7b45b
commit d17d71719b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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