-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (57 loc) · 1.22 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
version: '3.6'
volumes:
html-volume:
networks:
frontend:
driver: bridge
backend:
driver: bridge
services:
nginx:
build:
context: ./nginx
ports:
- 80:80
volumes:
- html-volume:/usr/share/nginx/html/
client:
build:
context: ./client
env_file: .env
depends_on:
- airflow
- redis
- nginx
volumes:
- html-volume:/tmp/nginx/
networks:
- backend
redis:
build:
context: ./redis
args:
- REDIS_VERSION=${REDIS_VERSION:-5}
restart: unless-stopped
volumes:
- ${DATA_PATH_HOST}/redis:/data
ports:
- "${REDIS_PORT:-6379}:6379/tcp"
networks:
backend:
aliases:
- redisserver
airflow:
image: apache/airflow
entrypoint: ["./start.sh"]
volumes:
- ${APP_CODE_PATH_HOST}/airflow/start.sh:/opt/airflow/start.sh
- ${APP_CODE_PATH_HOST}/airflow/requirements.txt:/opt/airflow/requirements.txt
- ${APP_CODE_PATH_HOST}/airflow/dags:/opt/airflow/dags
- /usr/bin/docker:/usr/bin/docker:z
- /var/run/docker.sock:/var/run/docker.sock:z
depends_on:
- redis
ports:
- "${AIRFLOW_PORT:-8081}:8080/tcp"
networks:
- backend