add healthchecks

This commit is contained in:
2026-02-04 11:31:46 +01:00
parent a0e6fed886
commit 7f45788b3d

View File

@@ -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