-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (81 loc) · 1.86 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
version: '2.2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "job_urls:2:1,job_descriptions:2:1,job_keywords:2:1,job_search:1:1,errors:1:1"
KAFKA_BROKER_ID: 1
KAFKA_LOG_DIRS: /logs
volumes:
- /var/run/docker.sock:/var/run/docker.sock
#- ./kafka_logs:/logs
kafka_ui:
image: obsidiandynamics/kafdrop
ports:
- "9000:9000"
environment:
ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKERCONNECT: "kafka:9092"
JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication"
depends_on:
- kafka
- zookeeper
job_description_scraper:
build: ./job_description_scraper
depends_on:
- kafka
scale: 2
job_url_scraper:
build: ./job_url_scraper
depends_on:
- kafka
redis:
image: 'bitnami/redis:5.0'
environment:
- REDIS_PASSWORD=password
ports:
- '6379:6379'
volumes:
- ./keywords_api/redis_data:/bitnami/redis/data
keywords_api:
build: ./keywords_api
ports:
- '4000:4000'
depends_on:
- redis
job_keywords_parser:
build: ./job_keywords_parser
depends_on:
- kafka
- keywords_api
scale: 2
neo4j:
image: neo4j:latest
ports:
- "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: neo4j/password
volumes:
- ./neo4j_data_loader/neo4j_data:/data
neo4j_data_loader:
build: ./neo4j_data_loader
depends_on:
- neo4j
- kafka
scale: 2
visualizer:
build: ./visualizer
ports:
- '5000:5000'
depends_on:
- neo4j
- kafka