Skip to content

Commit

Permalink
fix: wait for healthy db
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jan 22, 2025
1 parent 5c7e7ef commit c7500b3
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 @@ -55,7 +55,8 @@ services:
ports:
- "8080:8080"
depends_on:
- "db"
db:
condition: service_healthy
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER:-ash}:${POSTGRES_PASSWORD:-pokemon}@db:5432/${POSTGRES_DB:-pokeapi}
Expand Down

0 comments on commit c7500b3

Please sign in to comment.