Skip to content

Commit faeb9fe

Browse files
authored
Merge pull request #270 from DataIntegrationGroup/docker-db-fix
fix: specify database name in healthcheck for postgres service in docker
2 parents 12c692c + 3e8498f commit faeb9fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
volumes:
1414
- postgres_data:/var/lib/postgresql/data
1515
healthcheck:
16-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
16+
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
1717
interval: 2s
1818
timeout: 5s
1919
retries: 20

0 commit comments

Comments
 (0)