Skip to content

Commit

Permalink
Merge pull request #66 from Schroedinger-Hat/fix/docker-migrations
Browse files Browse the repository at this point in the history
fix(docker): run migrations after postgres is up & running
  • Loading branch information
LobeTia authored Oct 8, 2024
2 parents 508fccc + 62eeb55 commit d539559
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ services:
POSTGRES_DB: peoplez
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
retries: 3
start_period: 30s
timeout: 10s

maildev:
image: maildev/maildev
Expand Down Expand Up @@ -45,4 +51,6 @@ services:
- .:/app
- /app/node_modules
depends_on:
- postgres
postgres:
condition:
service_healthy

0 comments on commit d539559

Please sign in to comment.