-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (95 loc) · 2.52 KB
/
docker-compose.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3.8'
services:
minio:
image: minio/minio
container_name: minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minio@1234!
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
minio_mc:
image: minio/mc
container_name: minio_mc
depends_on:
- minio
entrypoint: |
sh -c "
sleep 10 &&
mc alias set myminio http://minio:9000 minioadmin minio@1234! &&
mc mb myminio/bronze &&
mc mb myminio/silver &&
mc mb myminio/gold
"
postgres-airflow:
image: postgres:15
container_name: postgres-airflow
environment:
POSTGRES_USER: post_airflow
POSTGRES_PASSWORD: airflow_123
POSTGRES_DB: airflow
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
airflow:
build:
context: .
dockerfile: airflow/config_airflow/airflow.Dockerfile
container_name: airflow
environment:
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://post_airflow:airflow_123@postgres-airflow:5432/airflow
PYTHONPATH: /opt/airflow/dags:/opt/airflow/config_airflow
AIRFLOW__CORE__LOAD_EXAMPLES: 'False'
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'true'
AIRFLOW__CORE__LOGGING_LEVEL: INFO
MINIO_ENDPOINT: http://minio:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minio@1234!
depends_on:
- postgres-airflow
- minio
ports:
- "8080:8080"
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/config_airflow:/opt/airflow/config_airflow
command: ['airflow', 'standalone']
metabase:
image: metabase/metabase:v0.47.1
container_name: metabase
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=metabase
- MB_DB_PASS=metabase_password
- MB_DB_HOST=postgres-metabase
ports:
- "3000:3000"
depends_on:
- postgres-metabase
volumes:
- metabase_data:/metabase-data
postgres-metabase:
image: postgres:15
container_name: postgres-metabase
environment:
POSTGRES_DB: metabase
POSTGRES_USER: metabase
POSTGRES_PASSWORD: metabase_password
ports:
- "5433:5432"
volumes:
- postgres_metabase_data:/var/lib/postgresql/data
volumes:
postgres_data:
minio_data:
mariadb_data:
metabase_data:
postgres_metabase_data: