Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ services:
POSTGRES_DB: ${POSTGRES_DB:-pokeapi}
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: pg_isready
interval: 1s
timeout: 5s
retries: 10
restart: always

app:
Expand All @@ -28,8 +33,10 @@ services:
- db
- cache
depends_on:
- db
- cache
db:
condition: service_healthy
cache:
condition: service_started
restart: always

web:
Expand Down
Loading