forked from Open-Cap-Stack/opencap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (117 loc) · 3.19 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: "3.8"
services:
app:
build:
context: .
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
working_dir: /app
command: nodemon app.js
depends_on:
- postgres
- minio
- spark
- airflow-webserver
environment:
- DATABASE_URL=postgres://postgres:password@postgres:5432/opencap
- MINIO_ENDPOINT=http://minio:9000
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
- NODE_ENV=development
postgres:
image: postgres:15-alpine
container_name: opencap_postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: opencap
volumes:
- postgres_data:/var/lib/postgresql/data
minio:
image: minio/minio:latest
container_name: opencap_minio
command: server /data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
- minio_data:/data
spark:
image: bitnami/spark:latest
container_name: opencap_spark
environment:
- SPARK_MODE=standalone
- SPARK_MASTER_URL=spark://spark:7077
ports:
- "7077:7077"
- "8080:8080"
volumes:
- spark_data:/opt/bitnami/spark
airflow-webserver:
image: apache/airflow:2.7.2
container_name: opencap_airflow_webserver
restart: always
ports:
- "8085:8080"
depends_on:
- airflow-scheduler
- airflow-db
- airflow-redis
environment:
- AIRFLOW__CORE__EXECUTOR=CeleryExecutor
- AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION=True
- AIRFLOW__CORE__LOAD_EXAMPLES=False
- AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@airflow-db:5432/airflow
- AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://airflow:airflow@airflow-db:5432/airflow
- AIRFLOW__CELERY__BROKER_URL=redis://airflow-redis:6379/0
- AIRFLOW_UID=50000
volumes:
- airflow_data:/opt/airflow
airflow-db:
image: postgres:15-alpine
container_name: opencap_airflow_db
restart: always
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
volumes:
- airflow_db_data:/var/lib/postgresql/data
airflow-redis:
image: redis:6-alpine
container_name: opencap_airflow_redis
restart: always
ports:
- "6379:6379"
airflow-scheduler:
image: apache/airflow:2.7.2
container_name: opencap_airflow_scheduler
restart: always
depends_on:
- airflow-db
- airflow-redis
environment:
- AIRFLOW__CORE__EXECUTOR=CeleryExecutor
- AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION=True
- AIRFLOW__CORE__LOAD_EXAMPLES=False
- AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@airflow-db:5432/airflow
- AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://airflow:airflow@airflow-db:5432/airflow
- AIRFLOW__CELERY__BROKER_URL=redis://airflow-redis:6379/0
- AIRFLOW_UID=50000
volumes:
- airflow_data:/opt/airflow
volumes:
postgres_data:
minio_data:
spark_data:
airflow_data:
airflow_db_data: