-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcrawl.docker-compose.yml
43 lines (40 loc) · 1.19 KB
/
crawl.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
version: "3.7"
services:
crawl_google_news:
build: ./flow
command: python3 /usr/app/crawl_google_news.py
volumes:
- /srv/docker/prefect/flows:/root/.prefect/flows
- "./flow/scripts:/usr/app:ro"
- type: bind
source: ./flow/config.toml
target: /root/.prefect/config.toml
read_only: true
env_file:
- .env
environment:
MAX_ES_ROW_INJECT: ${MAX_ES_ROW_INJECT}
ELASTIC_SCHEME: ${ELASTIC_SCHEME}
ELASTIC_PORT: ${ELASTIC_PORT}
ELASTIC_ENDPOINT: ${ELASTIC_ENDPOINT}
ELASTIC_USER: ${ELASTIC_USER}
ELASTIC_PWD: ${ELASTICSEARCH_PWD}
crawl_tweets:
build: ./flow
command: python3 /usr/app/crawl_tweets.py
volumes:
- /srv/docker/prefect/flows:/root/.prefect/flows
- "./flow/scripts:/usr/app:ro"
- type: bind
source: ./flow/config.toml
target: /root/.prefect/config.toml
read_only: true
env_file:
- .env
environment:
MAX_ES_ROW_INJECT: ${MAX_ES_ROW_INJECT}
ELASTIC_SCHEME: ${ELASTIC_SCHEME}
ELASTIC_PORT: ${ELASTIC_PORT}
ELASTIC_ENDPOINT: ${ELASTIC_ENDPOINT}
ELASTIC_USER: ${ELASTIC_USER}
ELASTIC_PWD: ${ELASTICSEARCH_PWD}