-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
87 lines (87 loc) · 2.21 KB
/
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
services:
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
ports:
- 15672:15672
- 5672:5672
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- 27017:27017
auth-service:
build: ./services/auth-service
container_name: auth-service
environment:
- MONGO_URL=mongodb://mongodb:27017/users
depends_on:
- mongodb
ports:
- 9000:9000
discovery-service:
build: ./services/discovery-service
container_name: discovery-service
ports:
- 8761:8761
token-service:
build: ./services/token-service
container_name: token-service
environment:
- MONGO_URL=mongodb://mongodb:27017/tokens
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
depends_on:
- discovery-service
- mongodb
ports:
- 8003:8003
device-service:
build: ./services/device-service
container_name: device-service
environment:
- MONGO_URL=mongodb://mongodb:27017/devices
- AUTH_SERVICE_URL=http://auth-service:9000
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
depends_on:
- discovery-service
- auth-service
- token-service
- mongodb
ports:
- 8004:8004
measurement-service:
build: ./services/measurement-service
container_name: measurement-service
environment:
- MONGO_URL=mongodb://mongodb:27017/measurements
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
depends_on:
- discovery-service
- device-service
- token-service
- mongodb
ports:
- 8005:8005
stat-service:
build: ./services/stat-service
container_name: stat-service
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
depends_on:
- discovery-service
- device-service
- measurement-service
ports:
- 8006:8006
gateway-service:
build: ./services/gateway-service
container_name: gateway-service
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
depends_on:
- discovery-service
- device-service
- measurement-service
- stat-service
ports:
- 8000:8000