-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
120 lines (110 loc) · 2.56 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
version: '3.1'
services:
mongo:
build: ./database
container_name: dse-mongo-db
ports:
- 27017:27017
restart: always
rabbit:
image: rabbitmq:3-management
container_name: dse-rabbitmq
restart: always
hostname: dse-rabbitmq
ports:
- 5672:5672
- 15672:15672
gateway:
build: ./gateway
restart: always
container_name: dse-gateway
environment:
- SPRING_RABBITMQ_HOST=dse-rabbitmq
ports:
- 4000:4000
depends_on:
- mongo
- rabbit
data-processor:
build: ./data-processor
restart: always
container_name: dse-data-processor
environment:
- SPRING_RABBITMQ_HOST=dse-rabbitmq
ports:
- 9000:9000
depends_on:
- mongo
- rabbit
notification-service:
build: ./notification-service
restart: always
container_name: dse-notification-service
environment:
- SPRING_DATA_MONGODB_HOST=dse-mongo-db
- SPRING_RABBITMQ_HOST=dse-rabbitmq
ports:
- 7000:7000
depends_on:
- mongo
- rabbit
statistics-service:
build: ./statistics-service
restart: always
container_name: dse-statistics-service
environment:
- SPRING_DATA_MONGODB_HOST=dse-mongo-db
- SPRING_RABBITMQ_HOST=dse-rabbitmq
ports:
- 8000:8000
depends_on:
- mongo
- rabbit
tracker-service:
build: ./tracker-service
restart: always
container_name: dse-tracker-service
links:
- rabbit
environment:
- SPRING_DATA_MONGODB_HOST=dse-mongo-db
- SPRING_RABBITMQ_HOST=dse-rabbitmq
ports:
- 6000:6000
depends_on:
- mongo
- rabbit
vehicle-service:
build: ./vehicle-service
restart: always
container_name: dse-vehicle-service
environment:
- SPRING_DATA_MONGODB_HOST=dse-mongo-db
- SPRING_RABBITMQ_HOST=dse-rabbitmq
ports:
- 5000:5000
depends_on:
- mongo
- rabbit
store-front:
build: ./store-front
restart: always
container_name: dse-store-front
ports:
- 8069:8069
depends_on:
- mongo
- rabbit
# Un-comment the following lines if you wish to deploy the data-simulator as well.
# Be careful though! As soon as the data-simulator is up, it starts emitting data
# intensively, so make sure to have sufficient memory/CPU available
#data-simulator:
# build: ./data-simulator
# restart: always
# container_name: dse-data-simulator
# environment:
# - SPRING_RABBITMQ_HOST=dse-rabbitmq
# ports:
# - 10000:10000
# depends_on:
# - rabbit