From fe17ec6bb15813d7034ff47941605c34fc8cce87 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Fri, 14 Jun 2024 19:33:52 +0200 Subject: [PATCH] Update docker-compose.yml --- docker/docker-compose.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 2e48106a..1c6d631c 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -28,6 +28,11 @@ services: cap_add: - NET_ADMIN - SYS_MODULE + healthcheck: + test: ["CMD-SHELL", "curl --fail http://localhost:5000/health || exit 1"] + interval: 30s + timeout: 10s + retries: 3 volumes: - /lib/modules:/lib/modules:ro - /proc:/host/proc:ro @@ -62,6 +67,11 @@ services: cap_add: - NET_ADMIN - SYS_MODULE + healthcheck: + test: ["CMD-SHELL", "curl --fail http://localhost:2083/ || curl --fail https://localhost:2083/ || exit 1"] + interval: 30s + timeout: 10s + retries: 3 volumes: - /lib/modules:/lib/modules:ro - /proc:/host/proc:ro @@ -98,7 +108,7 @@ services: - "80:80" - "443:443" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/"] + test: ["CMD-SHELL", "curl --fail http://localhost:2087/ || curl --fail https://localhost:2087/ || exit 1"] interval: 30s timeout: 10s retries: 3