-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.23 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
services:
reverse-proxy:
build:
context: ./nginx
ports:
- "5000:5000"
depends_on:
- frontend
- airflow
environment:
- AIRFLOW=airflow
- FRONTEND=frontend
- INCLUDE_PORT=on
frontend:
build:
context: ./frontend
environment:
# https://node-postgres.com/features/connecting#environment-variables
- USER=postgres
- PGHOST=user-db
depends_on:
- user-db
user-db:
image: postgres:16-alpine
volumes:
- user-db-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
hadoop:
build:
dockerfile: hadoop.Dockerfile
volumes:
- hadoop-data:/home/hadoop/hadoopdata
ports:
- "8088:8088"
- "9870:9870"
airflow:
build:
dockerfile: airflow.Dockerfile
volumes:
- airflow-db-data:/var/lib/postgresql
depends_on:
user-db:
condition: service_started
hadoop:
condition: service_healthy
environment:
- HADOOP_HOST=hadoop
- SPARK_HOST=airflow # Define the address under which spark is reachable externally
volumes:
user-db-data:
external: false
hadoop-data:
external: false
airflow-db-data:
external: false