diff --git a/build/docker/compose/docker-compose-debug.yml b/build/docker/compose/docker-compose-debug.yml index f4a8109..561ce1d 100644 --- a/build/docker/compose/docker-compose-debug.yml +++ b/build/docker/compose/docker-compose-debug.yml @@ -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 diff --git a/build/docker/compose/docker-compose.yml b/build/docker/compose/docker-compose.yml index ade042a..bc8602f 100644 --- a/build/docker/compose/docker-compose.yml +++ b/build/docker/compose/docker-compose.yml @@ -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}