feat(docker): add superset service

Add Apache Superset for data visualization to the docker-compose setup.
The custom Dockerfile installs additional tools and the clickhouse-connect
driver. The service is configured with health check, persistent volumes,
and environment variables.
This commit is contained in:
2026-02-04 23:17:11 +03:00
parent 60d02fdb28
commit a2a1fdb785
2 changed files with 35 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM apache/superset:4.1.2-dev
USER root
RUN apt-get update && \
apt-get install -y bind9-host bat less iputils-ping curl && \
apt-get clean
USER superset
RUN pip install clickhouse-connect==0.8.*
+24
View File
@@ -98,6 +98,28 @@ services:
networks:
- cs_dwh
superset:
# image: apache/superset
build:
context: .
dockerfile: Dockerfile.superset
restart: unless-stopped
ports:
- "8088:8088"
networks:
- cs_dwh
volumes:
- superset_data:/var/lib/superset
- superset_config:/app/superset_home
environment:
- SUPERSET_SECRET_KEY=9wc5+erMt60+lxrXDf3RjeIR+zONpEFusO00Np7JzfliMTI1e+RXnHcQ
- TZ=Europe/Moscow
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/health"]
interval: 30s
timeout: 10s
retries: 5
networks:
cs_dwh:
driver: bridge
@@ -105,4 +127,6 @@ networks:
volumes:
grafana_lib:
kafka-data:
superset_data:
superset_config: