Skip to content

Commit

Permalink
fix: make docker wait for db to fully load (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati authored Aug 16, 2024
1 parent fe60ba8 commit cd57db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
networks:
- openid_network
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DATASOURCE_DB}" ]
test: ["CMD-SHELL", "pg_isready -d ${DATASOURCE_DB} -U ${DATASOURCE_USER}"]
interval: 3s
timeout: 5s
retries: 20
Expand Down Expand Up @@ -60,4 +60,4 @@ networks:
driver: bridge

volumes:
postgres_data:
postgres_data:

0 comments on commit cd57db5

Please sign in to comment.