Skip to content

Commit

Permalink
Improve depends_on: db in docker-compose.yml
Browse files Browse the repository at this point in the history
Add the `condition: service_healthy` to support `db` service healthcheck
  • Loading branch information
trottomv authored and pauloxnet committed Jan 21, 2025
1 parent 418d589 commit c998913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ services:
- SQL_HOST=db
- SQL_PORT=5432
depends_on:
- db
db:
condition: service_healthy
db:
image: postgres:14-alpine
environment:
Expand Down

0 comments on commit c998913

Please sign in to comment.