#2354 added healthchecks for the services

This commit is contained in:
Alexander G 2024-07-13 10:41:04 +02:00 committed by GitHub
parent 77a6a6e46a
commit ae425475b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,6 +60,11 @@ services:
- web - web
- api - api
- space - space
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
interval: 2s
timeout: 10s
retries: 15
web: web:
<<: *app-env <<: *app-env
@ -73,6 +78,11 @@ services:
depends_on: depends_on:
- api - api
- worker - worker
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000"]
interval: 2s
timeout: 10s
retries: 15
space: space:
<<: *app-env <<: *app-env
@ -87,6 +97,8 @@ services:
- api - api
- worker - worker
- web - web
healthcheck:
test: ["NONE"]
admin: admin:
<<: *app-env <<: *app-env
@ -100,6 +112,8 @@ services:
depends_on: depends_on:
- api - api
- web - web
healthcheck:
test: ["NONE"]
api: api:
<<: *app-env <<: *app-env
@ -115,6 +129,11 @@ services:
depends_on: depends_on:
- plane-db - plane-db
- plane-redis - plane-redis
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/api"]
interval: 5s
timeout: 10s
retries: 15
worker: worker:
<<: *app-env <<: *app-env
@ -129,6 +148,8 @@ services:
- api - api
- plane-db - plane-db
- plane-redis - plane-redis
healthcheck:
test: ["NONE"]
beat-worker: beat-worker:
<<: *app-env <<: *app-env
@ -143,6 +164,8 @@ services:
- api - api
- plane-db - plane-db
- plane-redis - plane-redis
healthcheck:
test: ["NONE"]
migrator: migrator:
<<: *app-env <<: *app-env
@ -156,6 +179,8 @@ services:
depends_on: depends_on:
- plane-db - plane-db
- plane-redis - plane-redis
healthcheck:
test: ["NONE"]
plane-db: plane-db:
<<: *app-env <<: *app-env
@ -165,6 +190,11 @@ services:
command: postgres -c 'max_connections=1000' command: postgres -c 'max_connections=1000'
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
retries: 10
plane-redis: plane-redis:
<<: *app-env <<: *app-env
@ -173,6 +203,12 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- redisdata:/data - redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 20s
retries: 10
plane-minio: plane-minio:
<<: *app-env <<: *app-env
@ -182,6 +218,11 @@ services:
command: server /export --console-address ":9090" command: server /export --console-address ":9090"
volumes: volumes:
- uploads:/export - uploads:/export
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:9000/minio/health/live"]
interval: 5s
timeout: 20s
retries: 10
volumes: volumes: