Merge pull request #623 from haiwen/seafile_service_has_healthy_check
Some checks failed
Deploy CI - 13.0 / deploy (push) Has been cancelled

add healthcheck for seafile service
This commit is contained in:
Daniel Pan 2025-11-16 10:16:36 +08:00 committed by GitHub
commit ef843dad09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 27 additions and 0 deletions

View File

@ -82,6 +82,12 @@ services:
labels:
caddy: ${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty}
caddy.reverse_proxy: "{{upstreams 80}}"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
depends_on:
db:
condition: service_healthy

View File

@ -56,3 +56,9 @@ services:
- SEAFILE_AI_SERVER_URL=$SEAFILE_AI_SERVER_URL
- SEAFILE_AI_SECRET_KEY=${JWT_PRIVATE_KEY:?Variable is not set or empty}
- MD_FILE_COUNT_LIMIT=${MD_FILE_COUNT_LIMIT:-100000}
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s

View File

@ -41,6 +41,8 @@ services:
depends_on:
db:
condition: service_healthy
seafile:
condition: service_healthy
networks:
- seafile-net

View File

@ -29,6 +29,8 @@ services:
depends_on:
db:
condition: service_healthy
seafile:
condition: service_healthy
networks:
- seafile-net

View File

@ -94,6 +94,12 @@ services:
labels:
caddy: ${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty}
caddy.reverse_proxy: "{{upstreams 80}}"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
depends_on:
db:
condition: service_healthy

View File

@ -21,6 +21,9 @@ services:
- REDIS_HOST=${REDIS_HOST:-redis}
- REDIS_PORT=${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
depends_on:
seafile:
condition: service_healthy
networks:
- seafile-net

View File

@ -42,6 +42,8 @@ services:
depends_on:
db:
condition: service_healthy
seafile:
condition: service_healthy
networks:
- seafile-net