From d17d71719b754600a179287ff673c526ff05f83d Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Mon, 2 Aug 2021 16:06:02 +0200 Subject: [PATCH] Fix "fatal role postgres doesn't exist" Fix a frequent error with recent postgres docker images: `FATAL: role "postgres" does not exist` --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index bc292c53..5bf1bddf 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: .