mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
chore: add healthcheck configuration for backend and update service dependencies to ensure healthy startup
This commit is contained in:
parent
bc3db01778
commit
06e6c1c1be
2 changed files with 22 additions and 6 deletions
|
|
@ -92,6 +92,12 @@ services:
|
|||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 200s
|
||||
|
||||
celery_worker:
|
||||
build: ../surfsense_backend
|
||||
|
|
@ -116,7 +122,7 @@ services:
|
|||
redis:
|
||||
condition: service_healthy
|
||||
backend:
|
||||
condition: service_started
|
||||
condition: service_healthy
|
||||
|
||||
celery_beat:
|
||||
build: ../surfsense_backend
|
||||
|
|
@ -184,8 +190,10 @@ services:
|
|||
env_file:
|
||||
- ../surfsense_web/.env
|
||||
depends_on:
|
||||
- backend
|
||||
- electric
|
||||
backend:
|
||||
condition: service_healthy
|
||||
electric:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue