deploy: add portainer readiness healthchecks

This commit is contained in:
lingniu
2026-07-01 12:14:45 +08:00
parent 5ff7cfb9bb
commit bc60017c30
3 changed files with 58 additions and 0 deletions

View File

@@ -76,6 +76,12 @@ services:
- gb32960-ingest-data:/data
networks:
- vehicle-ingest
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:20100/actuator/health/readiness >/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
jt808-ingest-app:
image: crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com/oneos/jt808-ingest-app:${LINGNIU_IMAGE_VERSION:?set LINGNIU_IMAGE_VERSION}
@@ -99,6 +105,12 @@ services:
- jt808-ingest-data:/data
networks:
- vehicle-ingest
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:20400/actuator/health/readiness >/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
yutong-mqtt-app:
image: crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com/oneos/yutong-mqtt-app:${LINGNIU_IMAGE_VERSION:?set LINGNIU_IMAGE_VERSION}
@@ -129,6 +141,12 @@ services:
- yutong-mqtt-data:/data
networks:
- vehicle-ingest
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:20500/actuator/health/readiness >/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
vehicle-history-app:
image: crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com/oneos/vehicle-history-app:${LINGNIU_IMAGE_VERSION:?set LINGNIU_IMAGE_VERSION}
@@ -164,6 +182,12 @@ services:
- "${VEHICLE_HISTORY_HTTP_PORT:-20200}:20200"
networks:
- vehicle-ingest
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:20200/actuator/health/readiness >/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
vehicle-analytics-app:
image: crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com/oneos/vehicle-analytics-app:${LINGNIU_IMAGE_VERSION:?set LINGNIU_IMAGE_VERSION}
@@ -188,6 +212,12 @@ services:
- "${VEHICLE_ANALYTICS_HTTP_PORT:-20300}:20300"
networks:
- vehicle-ingest
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:20300/actuator/health/readiness >/dev/null"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
networks:
vehicle-ingest: