Skip to content
Open
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
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
depends_on:
# Our app does not work without our database
# so this ensures our database is loaded first
- postgres
condition: service_healthy
ports:
- "8080:8080"
volumes:
Expand Down Expand Up @@ -42,7 +42,11 @@ services:
# provided in the `docker-entrypoint-initdb.d` directory, this connects
# our seed file to that directory so that it gets run
- ./database-seed.sql:/docker-entrypoint-initdb.d/database-seed.sql

healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
# PostgreSQL pgAdmin panel accessible at http://localhost:16543/
pgadmin-compose:
image: dpage/pgadmin4
Expand Down