-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 933 Bytes
/
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
services:
db:
image: mysql:latest
container_name: mysql_db
command: '--default-authentication-plugin=mysql_native_password'
restart: always
hostname: mysql_db
ports:
- "3037:3036"
env_file:
- config.cnf
tty: true
networks:
- mynet
volumes:
- mysqldata:/var/lib/mysql
airflow-engine:
build: .
container_name: airflow
command: /bin/sh -c "/root/airflow/setup.sh"
depends_on:
- db
init: true
ports:
- "8084:8080"
environment:
- PYTHONPATH=/root/airflow
- COVID_PROJECT_PATH=/root/airflow
env_file:
- config.cnf
tty: true
networks:
- mynet
volumes:
- /root/airflow/
networks:
mynet:
volumes:
airflowdata:
mysqldata: