forked from steklopod/sharenow-coding-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.core.yml
117 lines (110 loc) · 3.16 KB
/
docker-compose.core.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
version: "3.9"
networks:
sharenow:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.27.0.0/25
gateway: 172.27.0.1
services:
gateway-service:
image: teenthofabud/sharenow-coding-challenge-gateway-service:1.0.0-RELEASE
container_name: gateway-service
hostname: gateway-service
networks:
sharenow:
ipv4_address: 172.27.0.8
environment:
- PROFILE=staging
- NAMING_SERVICE_URL=http://172.27.0.6:8761
- CONFIGURATION_SERVICE_URL=http://172.27.0.7:8888
ports:
- "8081:8081"
restart: on-failure
polling-service:
image: teenthofabud/sharenow-coding-challenge-polling-service:1.0.0-RELEASE
container_name: polling-service
hostname: polling-service
networks:
sharenow:
ipv4_address: 172.27.0.9
environment:
- PROFILE=staging
- CACHE_SERVICE_HOST=172.27.0.3
- CACHE_SERVICE_PORT=6379
- CAR2GO_SERVICE_URL=http://172.27.0.4:3000
- NAMING_SERVICE_URL=http://172.27.0.6:8761
- CONFIGURATION_SERVICE_URL=http://172.27.0.7:8888
depends_on:
- gateway-service
ports:
- "16080:16080"
restart: on-failure
car-service:
image: teenthofabud/sharenow-coding-challenge-car-service:1.0.0-RELEASE
container_name: car-service
hostname: car-service
networks:
sharenow:
ipv4_address: 172.27.0.10
environment:
- PROFILE=staging
- CACHE_SERVICE_HOST=172.27.0.3
- CACHE_SERVICE_PORT=6379
- TRACING_SERVICE_URL=http://172.27.0.5:9411
- NAMING_SERVICE_URL=http://172.27.0.6:8761
- CONFIGURATION_SERVICE_URL=http://172.27.0.7:8888
depends_on:
- polling-service
- gateway-service
links:
- polling-service
- gateway-service
ports:
- "17080:17080"
restart: on-failure
polygon-service:
image: teenthofabud/sharenow-coding-challenge-polygon-service:1.0.0-RELEASE
container_name: polygon-service
hostname: polygon-service
networks:
sharenow:
ipv4_address: 172.27.0.11
environment:
- PROFILE=staging
- DOCUMENTDB_SERVICE_HOST=172.27.0.2
- DOCUMENTDB_SERVICE_PORT=27017
- TRACING_SERVICE_URL=http://172.27.0.5:9411
- NAMING_SERVICE_URL=http://172.27.0.6:8761
- CONFIGURATION_SERVICE_URL=http://172.27.0.7:8888
depends_on:
- gateway-service
ports:
- "18080:18080"
restart: on-failure
position-service:
image: teenthofabud/sharenow-coding-challenge-position-service:1.0.0-RELEASE
container_name: position-service
hostname: position-service
networks:
sharenow:
ipv4_address: 172.27.0.12
environment:
- PROFILE=staging
- TRACING_SERVICE_URL=http://172.27.0.5:9411
- NAMING_SERVICE_URL=http://172.27.0.6:8761
- CONFIGURATION_SERVICE_URL=http://172.27.0.7:8888
- CAR_SERVICE_URL=http://172.27.0.10:17080/car
- POLYGON_SERVICE_URL=http://172.27.0.11:18080/polygon
depends_on:
- car-service
- polygon-service
- gateway-service
links:
- car-service
- polygon-service
- gateway-service
ports:
- "19080:19080"
restart: on-failure