-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
228 lines (191 loc) · 4.61 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
version: '2.1'
services:
retail-rabbitmq:
build:
dockerfile: Dockerfile
context: ./Retail.Queue
ports:
- '5672:5672'
- '15672:15672'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 10s
timeout: 100s
retries: 20
retail-frontend:
build:
dockerfile: Dockerfile
context: ./Retail.Frontend
ports:
- '5000:80'
retail-catalog:
build:
dockerfile: Dockerfile
context: ./Retail.Catalog/Retail.Catalog.Web
ports:
- '5001:80'
depends_on:
retail-catalog-database:
condition: service_healthy
links:
- retail-catalog-database
retail-catalog-database:
image: 'postgres:latest'
environment:
- POSTGRES_PASSWORD=retail
- POSTGRES_DB=catalog
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 100s
retries: 20
retail-catalog-frontend:
build:
dockerfile: Dockerfile
context: ./Retail.Catalog.Frontend
ports:
- '6001:80'
retail-sales:
build:
dockerfile: Dockerfile
context: ./Retail.Sales/Retail.Sales
ports:
- '5002:80'
depends_on:
retail-rabbitmq:
condition: service_healthy
links:
- retail-rabbitmq
stdin_open: true
tty: true
environment:
- JAEGER_AGENT_HOST=retail-jaeger
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_TYPE=remote
- JAEGER_SAMPLER_ENDPOINT=http://retail-jaeger:5778/sampling
retail-sales-microfrontend:
build:
dockerfile: Dockerfile
context: ./Retail.Sales.Microfrontend/
ports:
- '6002:80'
retail-billing:
build:
dockerfile: Dockerfile
context: ./Retail.Billing/Retail.Billing.Host
depends_on:
retail-rabbitmq:
condition: service_healthy
links:
- retail-rabbitmq
stdin_open: true
tty: true
retail-shipping:
build:
dockerfile: Dockerfile
context: ./Retail.Shipping/Retail.Shipping.Host
depends_on:
retail-rabbitmq:
condition: service_healthy
retail-mongo:
condition: service_healthy
links:
- retail-rabbitmq
- retail-mongo
stdin_open: true
tty: true
retail-mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: retail
MONGO_INITDB_ROOT_PASSWORD: retail
healthcheck:
test: ["CMD","mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 100s
retries: 10
retail-mongo-express:
image: mongo-express
restart: always
ports:
- 7081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: retail
ME_CONFIG_MONGODB_ADMINPASSWORD: retail
ME_CONFIG_MONGODB_URL: mongodb://retail:retail@retail-mongo:27017/
depends_on:
retail-mongo:
condition: service_healthy
links:
- retail-mongo
retail-recommendations:
build:
dockerfile: Dockerfile
context: ./Retail.Recommendations/Retail.Recommendations.Service
depends_on:
retail-rabbitmq:
condition: service_healthy
links:
- retail-rabbitmq
- retail-recommendations-database
stdin_open: true
tty: true
retail-recommendations-database:
build:
dockerfile: Dockerfile
context: ./Retail.Recommendations.Database
ports:
- '7474:7474'
- '7687:7687'
environment:
- NEO4J_AUTH=none
retail-auth:
build:
dockerfile: Dockerfile
context: ./Retail.Auth/IdentityServer
ports:
- '7001:80'
depends_on:
retail-rabbitmq:
condition: service_healthy
links:
- retail-rabbitmq
stdin_open: true
tty: true
retail-elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
environment:
- xpack.security.enabled=false
- "discovery.type=single-node"
ports:
- '9200:9200'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 10s
timeout: 100s
retries: 20
mem_limit: 2g
retail-kibana:
image: docker.elastic.co/kibana/kibana:7.11.0
environment:
- ELASTICSEARCH_HOSTS=http://retail-elastic:9200
depends_on:
retail-elastic:
condition: service_healthy
links:
- retail-elastic
ports:
- '5601:5601'
mem_limit: 1g
retail-jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "14250:14250"
- "9411:9411"