-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
150 lines (145 loc) · 3.17 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: "3"
services:
discovery:
image: kms/discovery
container_name: discovery
restart: always
build:
context: ./discovery
dockerfile: Dockerfile
ports:
- 8761:8761
entrypoint:
[
"java",
"-Xmx64m",
"-Xss512k",
"-jar",
"-Dserver.port=8761",
"-Dspring.profiles.active=staging",
"-Djava.security.egd=file:/dev/./urandom",
"/app.jar",
]
configserver:
image: kms/configserver
container_name: configserver
build:
context: ./configserver
dockerfile: Dockerfile
environment:
- DISCOVERY_SERVER_HOST=discovery
ports:
- "9090:9090"
depends_on:
- discovery
command:
[
"./wait-for-it.sh",
"discovery:8761",
"--",
"java",
"-Xmx64m",
"-Xss512k",
"-jar",
"-Dserver.port=9090",
"-Dspring.profiles.active=staging",
"-Djava.security.egd=file:/dev/./urandom",
"/app.jar",
]
links:
- discovery:discovery
calculator:
image: kms/calculator
container_name: calculator
build:
context: ./calculator
dockerfile: Dockerfile
environment:
- DISCOVERY_SERVER_HOST=discovery
- CONFIG_SERVER_HOST=configserver
ports:
- "8080:8080"
depends_on:
- discovery
- configserver
command:
[
"./wait-for-it.sh",
"configserver:9090",
"--",
"java",
"-Xmx64m",
"-Xss512k",
"-jar",
"-Dserver.port=8080",
"-Dspring.profiles.active=staging",
"-Djava.security.egd=file:/dev/./urandom",
"/app.jar",
]
links:
- discovery:discovery
- configserver:configserver
simulation:
image: kms/simulation
container_name: simulation
build:
context: ./simulation
dockerfile: Dockerfile
environment:
- DISCOVERY_SERVER_HOST=discovery
- CONFIG_SERVER_HOST=configserver
ports:
- "8090:8090"
depends_on:
- discovery
- configserver
- calculator
command:
[
"./wait-for-it.sh",
"calculator:8080",
"--",
"java",
"-Xmx64m",
"-Xss512k",
"-jar",
"-Dserver.port=8090",
"-Dspring.profiles.active=staging",
"-Djava.security.egd=file:/dev/./urandom",
"/app.jar",
]
links:
- discovery:discovery
- configserver:configserver
- calculator:calculator
gateway:
image: kms/gateway
container_name: gateway
build:
context: ./gateway
dockerfile: Dockerfile
environment:
- DISCOVERY_SERVER_HOST=discovery
- CONFIG_SERVER_HOST=configserver
ports:
- "9091:9091"
depends_on:
- discovery
- configserver
command:
[
"./wait-for-it.sh",
"simulation:8090",
"--",
"java",
"-Xmx64m",
"-Xss512k",
"-jar",
"-Dserver.port=9091",
"-Dspring.profiles.active=staging",
"-Djava.security.egd=file:/dev/./urandom",
"/app.jar",
]
links:
- discovery:discovery
- configserver:configserver