-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
89 lines (83 loc) · 1.83 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
version: "3"
networks:
app-tier:
driver: bridge
services:
server:
build: ./server
volumes:
- ./server:/app
ports:
- "5000:5000"
environment:
KAFKA_HOST: kafka
KAFKA_PORT: "9092"
MEMGRAPH_HOST: memgraph-mage
MEMGRAPH_PORT: "7687"
PATH_TO_INPUT_FILE: "/usr/lib/memgraph/import-data/friendship_network.csv"
depends_on:
- memgraph-mage
- kafka
networks:
- app-tier
stream:
build: ./stream
volumes:
- ./stream:/app
entrypoint:
[
"python3",
"stream.py",
"--file=friendship_network_stream.csv",
"--interval=2",
]
environment:
KAFKA_HOST: kafka
KAFKA_PORT: "9092"
depends_on:
- kafka
networks:
- app-tier
zookeeper:
image: "bitnami/zookeeper:3.7"
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- app-tier
logging:
driver: none
kafka:
image: "bitnami/kafka:2"
ports:
- "9093:9093"
environment:
- KAFKA_BROKER_ID=1
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_INTER_BROKER_LISTENER_NAME=CLIENT
depends_on:
- zookeeper
networks:
- app-tier
logging:
driver: none
memgraph-mage:
build: ./memgraph
ports:
- "7687:7687"
environment:
KAFKA_HOST: kafka
KAFKA_PORT: "9092"
entrypoint:
[
"/usr/lib/memgraph/memgraph",
"--kafka-bootstrap-servers=kafka:9092",
"--log-level=TRACE",
]
networks:
- app-tier