-
Notifications
You must be signed in to change notification settings - Fork 243
/
docker-compose.yml
106 lines (97 loc) · 2.63 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
version: '3'
services:
anyway:
build: .
image: ghcr.io/data-for-change/anyway/anyway:latest
container_name: anyway
ports:
- "8080:5000"
environment:
- DATABASE_URL=postgresql://anyway:anyway@db/anyway
- FLASK_ENV=development
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_KEY
- TWITTER_ACCESS_SECRET
- GOOGLE_APPLICATION_CREDENTIALS=GOOGLE_APPLICATION_CREDENTIALS_KEY.json
- MAPS_API_KEY
- BOT_TOKEN
- SELENIUM_URL
volumes:
- .:/anyway
restart: always
depends_on:
- db
- anyway-newsflash-infographics
anyway-newsflash-infographics:
build: ./anyway-newsflash-infographics/anyway-newsflash-infographics/.
image: anyway-newsflash-infographics:latest
container_name: anyway-newsflash-infographics
ports:
- "3000:3000"
restart: always
db:
build: db_docker
image: ghcr.io/data-for-change/anyway/db:latest
container_name: db
environment:
- DBRESTORE_AWS_ACCESS_KEY_ID
- DBRESTORE_AWS_SECRET_ACCESS_KEY
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "9876:5432"
restart: always
anyway-etl:
image: ghcr.io/data-for-change/anyway-etl/anyway-etl:latest
volumes:
- anyway_etl_data:/var/anyway-etl-data
depends_on:
- db
restart: "no"
anyway-etl-nginx:
image: ghcr.io/data-for-change/anyway-etl/anyway-etl-nginx:latest
volumes:
- anyway_etl_data:/var/anyway-etl-data
restart: unless-stopped
ports:
- "8083:80"
airflow-db:
image: postgres:13
restart: unless-stopped
environment:
POSTGRES_PASSWORD: "123456"
volumes:
- "airflow-db:/var/lib/postgresql/data"
airflow-webserver:
image: ghcr.io/data-for-change/anyway-etl/anyway-etl-airflow:latest
restart: unless-stopped
environment:
ANYWAY_ETL_AIRFLOW_INITIALIZE: "yes"
ANYWAY_ETL_AIRFLOW_ROLE: "webserver"
ANYWAY_ETL_AIRFLOW_ADMIN_PASSWORD: "123456"
ports:
- "8082:8080"
volumes:
- "airflow-home:/var/airflow"
depends_on:
- airflow-db
airflow-scheduler:
image: ghcr.io/data-for-change/anyway-etl/anyway-etl-airflow:latest
restart: unless-stopped
environment:
ANYWAY_ETL_AIRFLOW_ROLE: "scheduler"
ANYWAY_ETL_AIRFLOW_PIP_INSTALL_DEPS: "yes"
IMAP_MAIL_USER: "${IMAP_MAIL_USER}"
IMAP_MAIL_PASSWORD: "${IMAP_MAIL_PASSWORD}"
volumes:
- "airflow-home:/var/airflow"
- anyway_etl_data:/var/anyway-etl-data
depends_on:
- airflow-webserver
- db
volumes:
db_data:
anyway_etl_data:
airflow-db:
airflow-home: