From cf46bc0742b05e461062287a0c9dd6be29c22ec9 Mon Sep 17 00:00:00 2001 From: rich Date: Tue, 11 Oct 2022 16:17:55 +0100 Subject: [PATCH] Remove dependencies on other services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tilt doesn’t support dependencies so we have to remove them and manually wait until the community-api is up https://github.com/tilt-dev/tilt/issues/2210#issuecomment-532957058 --- docker-compose.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d0ff41a..c4c5cb3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -45,9 +40,6 @@ services: ports: - 3000:3000 entrypoint: "node dist/server.js | bunyan" - depends_on: - hmpps-auth: - condition: service_healthy database: image: "postgres" @@ -85,9 +77,6 @@ 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 @@ -95,7 +84,15 @@ services: 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: