Skip to content

Commit

Permalink
Fix healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Oct 28, 2024
1 parent 3855224 commit 2ec117c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ services:
interval: 2s
timeout: 1s
retries: 3
start_period: 30s
start_period: 5s
start_interval: 5s

db:
# We use MariaDB because it supports ARM and has the expected collations
Expand Down Expand Up @@ -49,6 +50,7 @@ services:
timeout: 1s
retries: 3
start_period: 30s
start_interval: 5s

misp-core:
image: ghcr.io/misp/misp-docker/misp-core:${CORE_RUNNING_TAG:-latest}
Expand All @@ -75,6 +77,8 @@ services:
condition: service_healthy
db:
condition: service_healthy
misp-modules:
condition: service_healthy
healthcheck:
test: curl -ks ${BASE_URL:-https://localhost}/users/heartbeat > /dev/null || exit 1
interval: 2s
Expand Down Expand Up @@ -223,6 +227,13 @@ services:
depends_on:
redis:
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:
mysql_data:

0 comments on commit 2ec117c

Please sign in to comment.