mirror of https://github.com/MISP/misp-docker
Fix healthchecks
parent
3855224c7c
commit
2ec117ccbb
|
@ -19,7 +19,8 @@ services:
|
||||||
interval: 2s
|
interval: 2s
|
||||||
timeout: 1s
|
timeout: 1s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 30s
|
start_period: 5s
|
||||||
|
start_interval: 5s
|
||||||
|
|
||||||
db:
|
db:
|
||||||
# We use MariaDB because it supports ARM and has the expected collations
|
# We use MariaDB because it supports ARM and has the expected collations
|
||||||
|
@ -49,6 +50,7 @@ services:
|
||||||
timeout: 1s
|
timeout: 1s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
|
start_interval: 5s
|
||||||
|
|
||||||
misp-core:
|
misp-core:
|
||||||
image: ghcr.io/misp/misp-docker/misp-core:${CORE_RUNNING_TAG:-latest}
|
image: ghcr.io/misp/misp-docker/misp-core:${CORE_RUNNING_TAG:-latest}
|
||||||
|
@ -75,6 +77,8 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
misp-modules:
|
||||||
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -ks ${BASE_URL:-https://localhost}/users/heartbeat > /dev/null || exit 1
|
test: curl -ks ${BASE_URL:-https://localhost}/users/heartbeat > /dev/null || exit 1
|
||||||
interval: 2s
|
interval: 2s
|
||||||
|
@ -223,6 +227,13 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
healthcheck:
|
||||||
|
test: "/bin/bash -c '</dev/tcp/localhost/6666'"
|
||||||
|
interval: 2s
|
||||||
|
timeout: 1s
|
||||||
|
retries: 3
|
||||||
|
start_period: 5s
|
||||||
|
start_interval: 5s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mysql_data:
|
mysql_data:
|
||||||
|
|
Loading…
Reference in New Issue