-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
132 lines (122 loc) · 2.84 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
#For running and connectiong to a local Memgraph DB instance
version: '3'
networks:
app-tier:
driver: bridge
services:
zookeeper:
image: 'bitnami/zookeeper:3.7'
ports:
- '2182:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- app-tier
logging:
driver: none
kafka:
image: 'bitnami/kafka:2'
logging:
driver: none
ports:
- '9094: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
memgraph:
build: ./memgraph
ports:
- '7688:7687'
environment:
KAFKA_IP: kafka
KAFKA_PORT: '9092'
entrypoint: [
"/usr/lib/memgraph/memgraph",
"--telemetry-enabled=false",
"--kafka-bootstrap-servers=kafka:9092",
"--query-modules-directory=/transformations,/usr/lib/memgraph/query_modules",
"--log-level=WARNING"]
networks:
- app-tier
core:
image: tianon/true
restart: "no"
depends_on:
- kafka
- memgraph
redis:
image: "redis"
ports:
- 6379:6379
networks:
- app-tier
cache_handler:
build:
context: ./cache_handler
volumes:
- ./cache_handler:/app
environment:
MEMGRAPH_IP: memgraph
MEMGRAPH_PORT: 7687
REDIS_HOST: redis
REDIS_PORT: "6379"
REDIS_PASSWORD: ""
DB_FETCH_TIME: "0.1"
command: python cache_handler.py
depends_on:
- redis
- memgraph
networks:
- app-tier
simulator:
build: ./simulator
volumes:
- ./simulator:/app
ports:
- '3001:3000'
environment:
KAFKA_IP: kafka
KAFKA_PORT: '9092'
MEMGRAPH_IP: memgraph
MEMGRAPH_PORT: '7687'
TLE_FILE_PATH: "imports/tle_3"
CITIES_FILE_PATH: "imports/cities.csv"
DB_UPDATE_TIME: 0.4
EDGE_ORBITS_CONNECTED: 'false'
ORBIT_ENDS_CONNECTED: 'false'
SAT_PROCESSING_DELAY: 0.010
RELAY_PROCESSING_DELAY: 0.012
VIEW_ANGLE: 70
#command: python main.py start
command: /wait-for-it.sh memgraph:7687 -- python main.py start
depends_on:
- core
networks:
- app-tier
web:
build: ./web_app
volumes:
- ./web_app:/app
ports:
- '5001:5000'
environment:
MG_HOST: memgraph
MG_PORT: 7687
REDIS_HOST: redis
REDIS_PORT: "6379"
REDIS_PASSWORD: ""
OPTICAL_FILE_PATH: "resources/latencies.csv"
depends_on:
#- redis
- simulator
networks:
- app-tier