fix(nats,dapr): remove healthchecks — scratch images have no shell/wget. Fix depends_on to use service_started
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user