Skip to content

Commit 039e023

Browse files
committed
Bug "FATAL: role 'root' does not exist" gets spammed in docker logs fixed with peter-evans/docker-compose-healthcheck#17
1 parent 4ae55e9 commit 039e023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
- ${PATH_TO_DB}:/var/lib/postgresql/data
2323
- ./src/main/resources/ddl.sql:/docker-entrypoint-initdb.d/init.sql
2424
healthcheck:
25-
test: [ "CMD-SHELL", "pg_isready", "-d", "db_prod" ]
25+
test: [ "CMD-SHELL", "pg_isready -d dmhelper -U dmhelper" ]
2626
interval: 3s
2727
timeout: 2s
2828
retries: 5

0 commit comments

Comments
 (0)