-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.49 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
version: "3.9"
services:
kafka-cluster:
container_name: kafka-cluster
image: landoop/fast-data-dev:2.5.1
environment:
ADV_HOST: kafka-cluster
RUNTESTS: 0 # Disable Running tests so the cluster starts faster
SAMPLEDATA: 0
ports:
- 2181:2181 # Zookeeper
- 3030:3030 # Landoop UI
- 8081-8083:8081-8083 # REST Proxy, Schema Registry, Kafka Connect ports
- 9581-9585:9581-9585 # JMX Ports
- 9092:9092 # Kafka Broker
networks:
- crawler-network
neo4j:
image: neo4j:4.0.3
hostname: neo4j
container_name: neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: neo4j/batikan
NEO4J_dbms_logs_debug_level: DEBUG
networks:
- crawler-network
crawler-master:
container_name: crawler-master-node
build:
context: .
dockerfile: ./Dockerfile-master
dns:
- 8.8.8.8
depends_on:
- kafka-cluster
- neo4j
deploy:
restart_policy:
condition: on-failure
networks:
- crawler-network
crawler-worker:
container_name: crawler-worker-node
build:
context: .
dockerfile: ./Dockerfile-worker
dns:
- 8.8.8.8
depends_on:
- kafka-cluster
- neo4j
- crawler-master
deploy:
restart_policy:
condition: on-failure
networks:
- crawler-network
networks:
crawler-network:
driver: bridge