-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
81 lines (80 loc) · 1.84 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
version: "3"
services:
webserver:
image: airflow-for-tweets
build:
context: .
dockerfile: Dockerfile
restart: always
env_file:
- ./.env
volumes:
- ./dags:/usr/local/airflow/dags
network_mode: host
command: airflow webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
environment:
- LC_ALL="en_US.UTF-8"
- LC_CTYPE="en_US.UTF-8"
- AIRFLOW_HOME=/home/es.py/balobi_nini
flower:
image: airflow-for-tweets
restart: always
environment:
- EXECUTOR=Celery
- LC_ALL="en_US.UTF-8"
- LC_CTYPE="en_US.UTF-8"
- AIRFLOW_HOME=/home/es.py/balobi_nini
env_file:
- ./.env
command: flower
network_mode: host
scheduler:
image: airflow-for-tweets
restart: always
depends_on:
- webserver
volumes:
- ./dags:/usr/local/airflow/dags
environment:
- LOAD_EX=n
- EXECUTOR=Celery
- LC_ALL="en_US.UTF-8"
- AIRFLOW_HOME=/home/es.py/balobi_nini/
env_file:
- ./.env
command: airflow scheduler
network_mode: host
worker:
image: airflow-for-tweets
restart: always
depends_on:
- scheduler
volumes:
- ./dags:/usr/local/airflow/dags
environment:
- EXECUTOR=Celery
- LC_ALL="en_US.UTF-8"
- LC_CTYPE="en_US.UTF-8"
- AIRFLOW_HOME=/home/es.py/balobi_nini
env_file:
- ./.env
command: airflow celery worker
network_mode: host
streamlit-instance:
image: airflow-for-tweets
restart: always
depends_on:
- worker
volumes:
- ./dags:/usr/local/airflow/dags
environment:
- AIRFLOW_HOME=/home/es.py/balobi_nini
env_file:
- ./.env
command: streamlit run stream_it.py
network_mode: host