From 0aae728e33c7a850762c4daf7e551954f5c9783f Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Thu, 12 Aug 2021 21:55:10 +0200 Subject: [PATCH] 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 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index bc292c53..b94f9813 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: .