Skip to content

Commit

Permalink
Remove dependencies on other services
Browse files Browse the repository at this point in the history
Tilt doesn’t support dependencies so we have to remove them and
manually wait until the community-api is up tilt-dev/tilt#2210 (comment)
  • Loading branch information
rich committed Oct 11, 2022
1 parent b199358 commit cf46bc0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ services:
- SPRING_REDIS_PORT=6379
ports:
- 8080:8080
depends_on:
database:
condition: service_healthy
hmpps-auth:
condition: service_healthy

frontend:
image: quay.io/hmpps/hmpps-approved-premises-ui:latest
Expand All @@ -45,9 +40,6 @@ services:
ports:
- 3000:3000
entrypoint: "node dist/server.js | bunyan"
depends_on:
hmpps-auth:
condition: service_healthy

database:
image: "postgres"
Expand Down Expand Up @@ -85,17 +77,22 @@ services:
- DELIUS_CLIENT_CLIENT-ID=delius-auth-api-client
- DELIUS_CLIENT_CLIENT-SECRET=delius-auth-api-client
- LOGGING_LEVEL_UK_GOV_JUSTICE=debug
depends_on:
community-api:
condition: service_healthy

community-api:
image: quay.io/hmpps/community-api:latest
container_name: community-api
ports:
- "9590:8080"
healthcheck:
test: ["CMD", "wget", "-nv", "-t1", "--spider", "http://localhost:8080/api/health"]
test:
[
"CMD",
"wget",
"-nv",
"-t1",
"--spider",
"http://localhost:8080/api/health",
]
volumes:
- ./seed/community-api:/seed
environment:
Expand Down

0 comments on commit cf46bc0

Please sign in to comment.