fix: healthcheck parameter
This commit is contained in:
@@ -17,10 +17,10 @@ services:
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"]
|
||||
test: ["CMD-SHELL", "mysqladmin", "ping", "-u", "root", "-p${MYSQL_ROOT_PASSWORD}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
restart: ${RESTART_OPTION}
|
||||
|
||||
wfc-redis:
|
||||
@@ -37,7 +37,7 @@ services:
|
||||
- ./redis/data:/opt/wfc/redis/data
|
||||
command: redis-server /opt/wfc/redis/redis.conf
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
test: ["CMD-SHELL", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
@@ -17,10 +17,10 @@ services:
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysqladmin ping -u root -p${MYSQL_ROOT_PASSWORD}"]
|
||||
test: ["CMD-SHELL", "mysqladmin", "ping", "-u", "root", "-p${MYSQL_ROOT_PASSWORD}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
restart: ${RESTART_OPTION}
|
||||
|
||||
wfc-redis:
|
||||
@@ -37,7 +37,7 @@ services:
|
||||
- ./redis/data:/opt/wfc/redis/data
|
||||
command: redis-server /opt/wfc/redis/redis.conf
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
test: ["CMD-SHELL", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -77,8 +77,8 @@ services:
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://${NACOS_SERVER_IP}:${NACOS_SERVER_PORT}/nacos/v1/console/health/liveness || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 30s
|
||||
retries: 10
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
restart: ${RESTART_OPTION}
|
||||
|
||||
wfc-gateway:
|
||||
@@ -111,7 +111,7 @@ services:
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:${GATEWAY_SERVER_PORT}/actuator/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
restart: ${RESTART_OPTION}
|
||||
|
||||
@@ -147,7 +147,7 @@ services:
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:${AUTH_SERVER_PORT}/actuator/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
restart: ${RESTART_OPTION}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user