From 6c29012f1b952995f83b741bd3c49762d0633b11 Mon Sep 17 00:00:00 2001 From: stevensting Date: Sun, 9 Feb 2025 18:43:29 +0100 Subject: [PATCH] add healthchecks where possible --- compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compose.yml b/compose.yml index 74ceeca..5c4b195 100644 --- a/compose.yml +++ b/compose.yml @@ -62,6 +62,12 @@ services: - db - redis environment: *default-env + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 2m deploy: restart_policy: condition: on-failure @@ -110,6 +116,8 @@ services: image: redis:5.0 networks: - backend + healthcheck: + test: ["CMD", "redis-cli", "ping"] #mailin: # image: loomio/mailin-docker:latest # networks: