Fix "fatal role postgres doesn't exist" (#2296)

* Fix "fatal role postgres doesn't exist" 

Fix a frequent error with recent postgres docker images:
`FATAL:  role "postgres" does not exist`

* Use $$VAR so it's expanded by the shell, not docker
このコミットが含まれているのは:
Samantaz Fox 2021-08-12 21:55:10 +02:00 committed by GitHub
コミット 0aae728e33
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

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