From 7b983daa4ceca78acd3e90628b9c26f5845fa962 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Tue, 21 Jul 2026 17:30:21 +0700 Subject: [PATCH] =?UTF-8?q?fix(nats,dapr):=20remove=20healthchecks=20?= =?UTF-8?q?=E2=80=94=20scratch=20images=20have=20no=20shell/wget.=20Fix=20?= =?UTF-8?q?depends=5Fon=20to=20use=20service=5Fstarted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/compose/dapr.yml | 6 ------ infra/compose/nats.yml | 6 ------ infra/compose/scraper.yml | 12 ++++++------ 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/infra/compose/dapr.yml b/infra/compose/dapr.yml index b148642..0720d04 100644 --- a/infra/compose/dapr.yml +++ b/infra/compose/dapr.yml @@ -6,12 +6,6 @@ services: networks: - app-shared-net command: ["./placement", "--port", "50005"] - healthcheck: - test: ['CMD-SHELL', 'wget --spider http://localhost:50005/healthz || exit 1'] - interval: 15s - timeout: 5s - retries: 3 - start_period: 10s networks: app-shared-net: diff --git a/infra/compose/nats.yml b/infra/compose/nats.yml index 18da71f..7eb98d5 100644 --- a/infra/compose/nats.yml +++ b/infra/compose/nats.yml @@ -16,12 +16,6 @@ services: - '/data' volumes: - nats_data:/data - healthcheck: - test: ['CMD-SHELL', 'wget --spider http://localhost:8222/healthz || exit 1'] - interval: 15s - timeout: 5s - retries: 3 - start_period: 10s volumes: nats_data: diff --git a/infra/compose/scraper.yml b/infra/compose/scraper.yml index 7adfa1e..3547f35 100644 --- a/infra/compose/scraper.yml +++ b/infra/compose/scraper.yml @@ -4,10 +4,10 @@ services: image: ghcr.io/asepharyana/asepharyana-hub/scraper-api:sha-c4ecf8f restart: always depends_on: - dapr-placement: - condition: service_healthy nats: - condition: service_healthy + condition: service_started + dapr-placement: + condition: service_started networks: app-shared-net: aliases: @@ -31,10 +31,10 @@ services: image: daprio/daprd:latest restart: always depends_on: - dapr-placement: - condition: service_healthy nats: - condition: service_healthy + condition: service_started + dapr-placement: + condition: service_started networks: - app-shared-net command: