mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:10:19 +00:00
NOISSUE - Add ui-backend-db health check (#376)
Signed-off-by: Arvindh <arvindh91@gmail.com>
This commit is contained in:
@@ -119,8 +119,10 @@ services:
|
||||
MG_BACKEND_OBJECT_STORAGE_SECRET_KEY: ${MG_BACKEND_OBJECT_STORAGE_SECRET_KEY}
|
||||
MG_BACKEND_OBJECT_STORAGE_TTL: ${MG_BACKEND_OBJECT_STORAGE_TTL}
|
||||
depends_on:
|
||||
- ui-backend-db
|
||||
- seaweedfs-s3
|
||||
ui-backend-db:
|
||||
condition: service_healthy
|
||||
seaweedfs-s3:
|
||||
condition: service_started
|
||||
volumes:
|
||||
# Auth gRPC client certificates
|
||||
- type: bind
|
||||
@@ -187,7 +189,11 @@ services:
|
||||
- magistrala-base-net
|
||||
volumes:
|
||||
- magistrala-ui-backend-db-volume:/var/lib/postgresql/data
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 60
|
||||
seaweedfs-s3:
|
||||
image: chrislusf/seaweedfs:latest
|
||||
container_name: magistrala-seaweedfs-s3
|
||||
|
||||
Reference in New Issue
Block a user