-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
superset:
image: apache/superset:latest
container_name: superset_duckdb
ports:
- "8089:8089"
volumes:
- ./death_metal.duckdb:/data/death_metal.duckdb
- superset_data:/app/superset_home
environment:
- SUPERSET_SECRET_KEY=death-metal-analytics-2024
command: >
sh -c "
pip install duckdb-engine &&
superset fab create-admin --username admin --firstname Admin --lastname User --email admin@superset.com --password admin &&
superset db upgrade &&
superset init &&
superset run -h 0.0.0.0 -p 8089 --with-threads --reload
"
restart: unless-stopped
jupyter:
image: jupyter/datascience-notebook:latest
container_name: jupyter_death_metal
ports:
- "8888:8888"
volumes:
- ./death_metal.duckdb:/home/jovyan/death_metal.duckdb
- jupyter_notebooks:/home/jovyan/work
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=death-metal-jupyter-2024
command: >
bash -c "
pip install duckdb boto3 minio &&
start-notebook.sh --NotebookApp.token='death-metal-jupyter-2024' --NotebookApp.password='death-metal' --NotebookApp.disable_check_xsrf=True
"
restart: unless-stopped
user: root
working_dir: /home/jovyan
volumes:
superset_data:
jupyter_notebooks: