-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (77 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
85 lines (77 loc) · 1.54 KB
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
version: '2'
services:
webapp:
container_name: webapp
restart: unless-stopped
build:
context: ./webapp
ports:
- 80:80
command-service:
container_name: command-service
restart: unless-stopped
build:
context: ./command-service
ports:
- 3000:3000
links:
- mongo-command
- kafka
query-service-lb:
container_name: query-service-lb
restart: unless-stopped
build:
context: ./query-service-lb
ports:
- 3300:80
links:
- query-service-1
- query-service-2
query-service-1:
container_name: query-service-1
restart: unless-stopped
build:
context: ./query-service
ports:
- 3100
links:
- mongo-query
query-service-2:
container_name: query-service-2
restart: unless-stopped
build:
context: ./query-service
ports:
- 3100
links:
- mongo-query
kafka-consumer:
container_name: kafka-consumer
restart: unless-stopped
build:
context: ./kafka-consumer
links:
- kafka
- mongo-query
kafka:
image: spotify/kafka
container_name: kafka
restart: unless-stopped
ports:
- 2181:2181
- 9092:9092
environment:
ADVERTISED_PORT: 9092
ADVERTISED_HOST: kafka
mongo-command:
image: mongo
container_name: mongo-command
restart: unless-stopped
ports:
- "27017:27017"
mongo-query:
image: mongo
container_name: mongo-query
restart: unless-stopped
ports:
- 27018:27017