зеркало из https://github.com/mozilla/MozDef.git
Add healthchecks (#1689)
This commit is contained in:
Родитель
45666bccfc
Коммит
cb6c8f40e7
|
@ -143,6 +143,11 @@ services:
|
|||
cache_from:
|
||||
- mozdef/mozdef_alertactions
|
||||
- mozdef_alertactions:latest
|
||||
healthcheck:
|
||||
test: "[[ $$(pgrep python | wc -l) -ge 1 ]]"
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
restart: always
|
||||
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && python alert_actions_worker.py -c alert_actions_worker.conf'
|
||||
depends_on:
|
||||
|
@ -205,6 +210,11 @@ services:
|
|||
cache_from:
|
||||
- mozdef/mozdef_cron
|
||||
- mozdef_cron:latest
|
||||
healthcheck:
|
||||
test: "[[ $$(pgrep crond | wc -l) -eq 1 ]]"
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
restart: always
|
||||
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && crond -n'
|
||||
volumes:
|
||||
|
@ -247,6 +257,11 @@ services:
|
|||
cache_from:
|
||||
- mozdef/mozdef_mq_worker
|
||||
- mozdef_mq_worker:latest
|
||||
healthcheck:
|
||||
test: "[[ $$(pgrep python | wc -l) -ge 1 ]]"
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
restart: always
|
||||
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && python esworker_eventtask.py -c esworker_eventtask.conf'
|
||||
depends_on:
|
||||
|
|
Загрузка…
Ссылка в новой задаче