fix(nats,dapr): remove healthchecks — scratch images have no shell/wget. Fix depends_on to use service_started

This commit is contained in:
asepharyana
2026-07-21 17:30:21 +07:00
parent 9a29d86fbd
commit 7b983daa4c
3 changed files with 6 additions and 18 deletions
-6
View File
@@ -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:
-6
View File
@@ -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:
+6 -6
View File
@@ -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: