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:
@@ -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.*
|
||||||
@@ -98,6 +98,28 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- cs_dwh
|
- 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:
|
networks:
|
||||||
cs_dwh:
|
cs_dwh:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
@@ -105,4 +127,6 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
grafana_lib:
|
grafana_lib:
|
||||||
kafka-data:
|
kafka-data:
|
||||||
|
superset_data:
|
||||||
|
superset_config:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user