Skip to content

Commit

Permalink
added in some database checks and dependencies in the test compose ym…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhiggs committed Jul 4, 2023
1 parent e12c62a commit b4fbe73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .test-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ services:
user: "${UID}:${GID}"
extra_hosts:
- "gateway.docker.internal:host-gateway"
depends_on:
pgrouting:
condition: service_healthy
links:
- pgrouting

pgrouting:
image: pgrouting/pgrouting
Expand All @@ -26,6 +31,11 @@ services:
- "5433:5433"
volumes:
- db-data:/var/lib/postgis:/postgresql/13/main
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
interval: 5s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: ghscic
POSTGRES_HOST: ghscic_postgis
Expand Down

0 comments on commit b4fbe73

Please sign in to comment.