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
This commit is contained in:
Samantaz Fox authored and GitHub committed 2021-08-12 19:55:10 +00:00
1 parent cea38de4ad
commit 0aae728e33
1 file changed
+1 -1
+1 -1
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: .