healthcheck
This commit is contained in:
@@ -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!}
|
||||||
|
|||||||
Reference in New Issue
Block a user