From 7f45788b3dfdd6ea14f9f8e15aa3dbdb699f5fe4 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Wed, 4 Feb 2026 11:31:46 +0100 Subject: [PATCH] add healthchecks --- compose.seafile.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/compose.seafile.yaml b/compose.seafile.yaml index 959a9b2..e304f3c 100644 --- a/compose.seafile.yaml +++ b/compose.seafile.yaml @@ -36,6 +36,11 @@ services: - redis-server --requirepass "$$REDIS_PASSWORD" environment: - REDIS_PASSWORD=redis + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 10s + timeout: 5s + retries: 3 seafile-server: image: seafileltd/seafile-mc:13.0-latest @@ -65,6 +70,12 @@ services: depends_on: - seafile-mysql - seafile-redis + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s seadoc-server: restart: unless-stopped @@ -86,3 +97,9 @@ services: - 7070:80 depends_on: - seafile-mysql + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 30s