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:
|
networks:
|
||||||
- app-shared-net
|
- app-shared-net
|
||||||
command: ["./placement", "--port", "50005"]
|
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:
|
networks:
|
||||||
app-shared-net:
|
app-shared-net:
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ services:
|
|||||||
- '/data'
|
- '/data'
|
||||||
volumes:
|
volumes:
|
||||||
- nats_data:/data
|
- 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:
|
volumes:
|
||||||
nats_data:
|
nats_data:
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ services:
|
|||||||
image: ghcr.io/asepharyana/asepharyana-hub/scraper-api:sha-c4ecf8f
|
image: ghcr.io/asepharyana/asepharyana-hub/scraper-api:sha-c4ecf8f
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
dapr-placement:
|
|
||||||
condition: service_healthy
|
|
||||||
nats:
|
nats:
|
||||||
condition: service_healthy
|
condition: service_started
|
||||||
|
dapr-placement:
|
||||||
|
condition: service_started
|
||||||
networks:
|
networks:
|
||||||
app-shared-net:
|
app-shared-net:
|
||||||
aliases:
|
aliases:
|
||||||
@@ -31,10 +31,10 @@ services:
|
|||||||
image: daprio/daprd:latest
|
image: daprio/daprd:latest
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
dapr-placement:
|
|
||||||
condition: service_healthy
|
|
||||||
nats:
|
nats:
|
||||||
condition: service_healthy
|
condition: service_started
|
||||||
|
dapr-placement:
|
||||||
|
condition: service_started
|
||||||
networks:
|
networks:
|
||||||
- app-shared-net
|
- app-shared-net
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user