-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
64 lines (59 loc) · 1.6 KB
/
compose.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
homepage:
build: ./homepage
ports:
- 3000:3000
volumes:
- ./homepage:/src
environment:
SERVICES: '{
"Airflow": "http://localhost:8080/home",
"Jupyter": "http://localhost:8888/lab/tree/work"
}'
command: flask run --host=0.0.0.0 --port=3000 --debug
# https://airflow.apache.org/docs/docker-stack/index.html
airflow:
build: ./airflow
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/plugins:/opt/airflow/plugins
- ./airflow/data:/data
- ./duckdb:/duckdb
ports:
- 8080:8080
environment:
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql://db:db@database/db
depends_on:
- database
command: bash -c "/entrypoint.sh"
database:
image: postgres:latest
volumes:
- pgdata:/var/lib/postgresql/data/
ports:
- 5432:5432
environment:
POSTGRES_USER: db
POSTGRES_PASSWORD: db
POSTGRES_DB: db
# http://127.0.0.1:8888/lab
jupyter:
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-base-notebook
build: ./jupyter
volumes:
- ./jupyter/notebooks:/home/jovyan/work
- ./duckdb:/duckdb
ports:
- 8888:8888
# https://jupyter-server.readthedocs.io/en/latest/other/full-config.html
command: start-notebook.py --IdentityProvider.token=''
dbt:
build: dbt_project/.
tty: true
volumes:
- ./dbt_project:/dbt_project
- ./duckdb:/duckdb
command: flask run --host=0.0.0.0 --debug
volumes:
# persist the postgres data when the container restarts
pgdata: