-
Notifications
You must be signed in to change notification settings - Fork 53
/
docker-compose.yml
227 lines (208 loc) · 6.47 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
version: '3.1'
services:
torproxy:
container_name: torproxy
image: dperson/torproxy:latest
environment:
- TOR_MaxCircuitDirtiness=10
restart: always
ports:
- '9050:9050'
profiles:
- network
- google-poi-scraper
- proxy
# docker-compose --profile backend_database up
backend_database:
container_name: backend_database
image: postgres:14.2
environment:
- POSTGRES_USER=kuwala
- POSTGRES_PASSWORD=password
- POSTGRES_DB=kuwala
ports:
- '5433:5433'
volumes:
- ./kuwala/tmp/kuwala/backend/db/postgresql/data:/var/lib/postgresql/data
command: -p 5433
profiles:
- network
- backend
- backend_database
- kuwala
# docker-compose --profile backend up
backend:
container_name: backend
depends_on: [ backend_database ]
image: kuwala/core:backend-0.2.0-alpha
ports:
- '8000:8000'
environment:
- DATABASE_USER=kuwala
- DATABASE_PASSWORD=password
- DATABASE_NAME=kuwala
- DATABASE_HOST=backend_database
volumes:
- ./kuwala/tmp/kuwala/backend/dbt:/opt/tmp/kuwala/backend/dbt
profiles:
- network
- backend
- kuwala
# docker-compose --profile frontend up
frontend:
container_name: frontend
depends_on: [ backend ]
image: kuwala/core:frontend-0.2.0-alpha
ports:
- '3000:3000'
profiles:
- network
- frontend
- kuwala
# docker-compose --profile database up
postgres:
container_name: postgres
image: kuwala/core:postgis-h3-0.2.0-alpha
shm_size: 16g
restart: always
environment:
- POSTGRES_USER=kuwala
- POSTGRES_PASSWORD=password
- POSTGRES_DB=kuwala
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology,postgis_raster,pgrouting,h3
ports:
- '5432:5432'
volumes:
- ./kuwala/tmp/kuwala/db/postgres:/var/lib/postgresql
profiles:
- network
- database
# docker-compose run database-importer --continent=<> --country=<> --country_region=<> [--population_density_date=<>]
database-importer:
container_name: database-importer
image: kuwala/core:database-importer-0.2.0-alpha
restart: always
environment:
- DATABASE_HOST=postgres
- DATABASE_NAME=kuwala
- DATABASE_USER=kuwala
- DATABASE_PASSWORD=password
volumes:
- ./kuwala/tmp/kuwala:/opt/tmp/kuwala
profiles:
- network
# docker-compose run database-transformer
database-transformer:
container_name: database-transformer
image: kuwala/core:database-transformer-0.2.0-alpha
restart: always
environment:
- DBT_HOST=postgres
profiles:
- network
# docker-compose run --service-ports jupyter
jupyter:
container_name: jupyter
image: kuwala/core:jupyter-0.2.0-alpha
restart: always
environment:
- JUPYTER_ENABLE_LAB=yes
- DBT_HOST=postgres
volumes:
- ./kuwala/core/jupyter/modules:/home/jovyan/kuwala/modules
- ./kuwala/core/database/transformer:/home/jovyan/kuwala/dbt
- ./kuwala/core/jupyter/notebooks:/home/jovyan/kuwala/notebooks
- ./kuwala/core/jupyter/resources:/home/jovyan/kuwala/resources
- ./kuwala/tmp/kuwala/transformer:/home/jovyan/kuwala/tmp/kuwala/transformer
ports:
- '8888:8888'
profiles:
- network
- jupyter
# docker-compose run admin-boundaries --continent=<> --country=<> --country_region=<>
admin-boundaries:
container_name: admin-boundaries
image: kuwala/data-pipelines:admin-boundaries-0.2.0-alpha
environment:
- SPARK_MEMORY=16g
volumes:
- ./kuwala/tmp/kuwala/osm_files:/opt/tmp/kuwala/osm_files
- ./kuwala/tmp/kuwala/admin_boundary_files:/opt/tmp/kuwala/admin_boundary_files
restart: always
profiles:
- network
# docker-compose --profile google-poi-scraper up
google-poi-api:
container_name: google-poi-api
image: kuwala/data-pipelines:google-poi-api-0.2.0-alpha
environment:
- PROXY_ADDRESS=socks5://torproxy:9050
- QUART_DEBUG=False
volumes:
- ./kuwala/pipelines/google-poi/resources/categories.json:/opt/app/pipelines/google-poi/resources/categories.json
restart: always
depends_on: [torproxy]
ports:
- '3003:3003'
profiles:
- network
- google-poi-scraper
# docker-compose run google-poi-pipeline --continent=<> --country=<> --country_region=<> --polygon_coords=<> --polygon_resolution=<> --search_string_basis=<>
google-poi-pipeline:
container_name: google-poi-pipeline
image: kuwala/data-pipelines:google-poi-pipeline-0.2.0-alpha
environment:
- GOOGLE_POI_API_HOST=google-poi-api
- SPARK_MEMORY=16g
volumes:
- ./kuwala/tmp/kuwala/google_files:/opt/app/tmp/kuwala/google_files
- ./kuwala/tmp/kuwala/osm_files:/opt/app/tmp/kuwala/osm_files
restart: always
profiles:
- network
# docker-compose run google-trends --continent=<> --country=<> --country_region=<> --keyword=<>
google-trends:
container_name: google-trends
image: kuwala/data-pipelines:google-trends-0.2.0-alpha
environment:
- PROXY_ADDRESS=socks5://torproxy:9050
volumes:
- ./kuwala/tmp/kuwala/admin_boundary_files:/opt/tmp/kuwala/admin_boundary_files
- ./kuwala/tmp/kuwala/google_trends_files:/opt/tmp/kuwala/google_trends_files
restart: always
depends_on: [torproxy]
profiles:
- network
# docker-compose run osm-parquetizer java -jar target/osm-parquetizer-1.0.1-SNAPSHOT.jar --continent=<> --country=<> --country_region=<>
osm-parquetizer:
container_name: osm-parquetizer
image: kuwala/data-pipelines:osm-parquetizer-0.2.0-alpha
restart: always
volumes:
- ./kuwala/tmp/kuwala/osm_files:/opt/app/tmp/kuwala/osm_files
profiles:
- network
# docker-compose run osm-poi
osm-poi:
container_name: osm-poi
image: kuwala/data-pipelines:osm-poi-0.2.0-alpha
environment:
- SPARK_MEMORY=16g
- PROXY_ADDRESS=socks5://torproxy:9050
restart: always
depends_on: [torproxy]
volumes:
- ./kuwala/tmp/kuwala/osm_files:/opt/app/tmp/kuwala/osm_files
profiles:
- network
# docker-compose run population-density
population-density:
container_name: population-density
image: kuwala/data-pipelines:population-density-0.2.0-alpha
environment:
- SPARK_MEMORY=16g
restart: always
volumes:
- ./kuwala/tmp/kuwala/population_files:/opt/app/tmp/kuwala/population_files
profiles:
- network