change healthchecks

This commit is contained in:
Victor Carlos Erenu
2026-03-17 02:06:48 +07:00
parent 1346a10477
commit 2f8503dba9
2 changed files with 22 additions and 22 deletions
+16 -16
View File
@@ -9,7 +9,7 @@ services:
wazuh1.indexer:
condition: service_healthy
healthcheck:
test: [ "CMD-SHELL", "curl -s -k -I -u $$API_USERNAME:$$API_PASSWORD https://localhost:55000/security/user/authenticate > /dev/null || exit 1" ]
test: [ "CMD-SHELL", "curl -s -k -f -I -u $$API_USERNAME:$$API_PASSWORD https://localhost:55000/security/user/authenticate > /dev/null || exit 1" ]
interval: 15s
timeout: 5s
retries: 5
@@ -110,11 +110,11 @@ services:
soft: 65536
hard: 65536
healthcheck:
test: [ "CMD-SHELL", "curl -s -k -u test:test https://localhost:9200/_cluster/health" ]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
test: [ "CMD-SHELL", "curl -fks https://localhost:9200/_plugins/_security/health | grep -q '\"status\":\"UP\"'" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
volumes:
- wazuh-indexer-data-1:/var/lib/wazuh-indexer
- ./wazuh-certificates/root-ca.pem:/usr/share/wazuh-indexer/config/certs/root-ca.pem
@@ -150,11 +150,11 @@ services:
soft: 65536
hard: 65536
healthcheck:
test: [ "CMD-SHELL", "curl -s -k -u test:test https://localhost:9200/_cluster/health" ]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
test: [ "CMD-SHELL", "curl -fks https://localhost:9200/_plugins/_security/health | grep -q '\"status\":\"UP\"'" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
volumes:
- wazuh-indexer-data-2:/var/lib/wazuh-indexer
- ./wazuh-certificates/root-ca.pem:/usr/share/wazuh-indexer/config/certs/root-ca.pem
@@ -188,11 +188,11 @@ services:
soft: 65536
hard: 65536
healthcheck:
test: [ "CMD-SHELL", "curl -s -k -u test:test https://localhost:9200/_cluster/health" ]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
test: [ "CMD-SHELL", "curl -fks https://localhost:9200/_plugins/_security/health | grep -q '\"status\":\"UP\"'" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
volumes:
- wazuh-indexer-data-3:/var/lib/wazuh-indexer
- ./wazuh-certificates/root-ca.pem:/usr/share/wazuh-indexer/config/certs/root-ca.pem