healthcheck

This commit is contained in:
2025-09-16 15:51:03 +02:00
parent 9b50328ca1
commit 071888a857

View File

@@ -12,11 +12,18 @@ services:
- ./data:/tmp:Z - ./data:/tmp:Z
ports: ports:
- 5432:5432 - 5432:5432
healthcheck:
test: ["CMD", "pg_isready", "--username", "${COMPOSE_PROJECT_NAME}", "--dbname", "${COMPOSE_PROJECT_NAME}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
bi: bi:
image: apache/superset:3.1.3 image: apache/superset:3.1.3
depends_on: depends_on:
- database database:
condition: service_healthy
environment: environment:
SUPERSET_CONFIG_PATH: /app/pythonpath/superset_config.py SUPERSET_CONFIG_PATH: /app/pythonpath/superset_config.py
SUPERSET_SECRET_KEY: ${SUPERSET_SECRET:-!ChangeMe!} SUPERSET_SECRET_KEY: ${SUPERSET_SECRET:-!ChangeMe!}