/
docker-compose.override.yml
221 lines (201 loc) · 7.23 KB
/
docker-compose.override.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
version: '3.4'
services:
mssqldata:
container_name: mssqldata
environment:
SA_PASSWORD: "aDmin1234!"
ACCEPT_EULA: "Y"
restart: always
ports:
- "5433:1433"
volumes:
- fs_mssqldata:/var/opt/mssql
basketdb:
container_name: basketdb
restart: always
ports:
- "6379:6379"
inventorydb:
container_name: inventorydb
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin1234
- POSTGRES_DB=InventoryDb
restart: always
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
rabbitmq:
container_name: rabbitmq
restart: always
ports:
- "5672:5672"
- "15672:15672"
seq:
container_name: seq
environment:
ACCEPT_EULA: "Y"
restart: unless-stopped
deploy:
resources:
limits:
memory: 500mb
reservations:
memory: 500mb
ports:
- "8200:80"
- "5341:5341"
volumes:
- seq_data:/data
products.api:
container_name: products.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:ProductsConnectionString=Server=mssqldata;Database=ProductsDb;User Id=sa;Password=aDmin1234!;Trust Server Certificate=true;"
- "EventBusSettings:HostAddress=amqp://guest:guest@rabbitmq:5672"
- "AzureUploadSettings:AzureStorageConnectionString=${AZURE_STORAGE_CONNECTION_STRING}"
- "AzureUploadSettings:AzureContainersAllowed=${AZURE_CONTAINERS_ALLOWED}"
- "AzureUploadSettings:FileUploadTypesAllowed=${FILE_EXTENSION_TYPES_ALLOWED}"
- "AzureUploadSettings:MaxFileUploadSize=${MAX_FILE_UPLOAD_SIZE}"
- "InitialDataSeeding=${PRODUCT_DATA_SEEDING}"
ports:
- "8001:8080"
basket.api:
container_name: basket.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "CacheSettings:ConnectionString=basketdb:6379"
- "GrpcSettings:DiscountUri=http://discount.grpc:8080"
ports:
- "8002:8080"
discount.grpc:
container_name: discount.grpc
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:DiscountConnectionString=Server=mssqldata;Database=DiscountDb;User Id=sa;Password=aDmin1234!;Trust Server Certificate=true;"
- "InitialDataSeeding=true"
ports:
- "8003:8080"
discount.minapi:
container_name: discount.minapi
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:DiscountConnectionString=Server=mssqldata;Database=DiscountDb;User Id=sa;Password=aDmin1234!;Encrypt=false"
ports:
- "8004:8080"
identity.api:
container_name: identity.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:IdentityConnection=Server=mssqldata;Database=IdentityDb;User Id=sa;Password=aDmin1234!;Trust Server Certificate=true;"
- "JwtKey=${JWT_KEY}"
- "JwtIssuer=http://identity.api"
- "JwtAudience=http://identity.api"
- "JwtExpiryInDays=${JWT_EXPIRY_IN_DAYS}"
- "RedisURI=basketdb:6379"
- "InitialDataSeeding=${IDENTITY_DATA_SEEDING}"
ports:
- "8005:8080"
ordering.api:
container_name: ordering.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:OrdersConnectionString=Server=mssqldata;Database=OrdersDb;User Id=sa;Password=aDmin1234!;Trust Server Certificate=true;"
- "ApiSettings:IdentityUri=http://identity.api:8080"
- "EventBusSettings:HostAddress=amqp://guest:guest@rabbitmq:5672"
- "Stripe:WhSecret=${STRIPE_WHSECRET}"
- "Stripe:SecretKey=${STRIPE_SECRET_KEY}"
- "Stripe:PublishableKey=${STRIPE_PUBLISHABLE_KEY}"
ports:
- "8006:8080"
inventory.api:
container_name: inventory.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:InventoryConnectionString=Server=inventorydb;Database=InventoryDb;User Id=admin;Password=admin1234;"
- "ApiSettings:IdentityUri=http://identity.api:8080"
- "EventBusSettings:HostAddress=amqp://guest:guest@rabbitmq:5672"
ports:
- "8007:8080"
products.aggregator:
container_name: products.aggregator
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ApiSettings:ProductsUrl=http://products.api:8080"
- "ApiSettings:DiscountUrl=http://discount.minapi:8080"
- "ApiSettings:InventoryUrl=http://inventory.api:8080"
ports:
- "8015:8080"
store.gateway:
container_name: store.gateway
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "Cors_Url=http://store.gateway"
ports:
- "8010:8080"
marketing.gateway:
container_name: marketing.gateway
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "8011:8080"
admin.gateway:
container_name: admin.gateway
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "8012:8080"
applicationstatus:
container_name: applicationstatus
environment:
- ASPNETCORE_ENVIRONMENT=Development
- HealthChecksUI__HealthChecks__0__Name=Products API
- HealthChecksUI__HealthChecks__0__Uri=http://products.api:8080/hc
- HealthChecksUI__HealthChecks__1__Name=Basket API
- HealthChecksUI__HealthChecks__1__Uri=http://basket.api:8080/hc
- HealthChecksUI__HealthChecks__2__Name=Discount minAPI
- HealthChecksUI__HealthChecks__2__Uri=http://discount.minapi:8080/hc
- HealthChecksUI__HealthChecks__3__Name=Identity API
- HealthChecksUI__HealthChecks__3__Uri=http://identity.api:8080/hc
- HealthChecksUI__HealthChecks__4__Name=Ordering API
- HealthChecksUI__HealthChecks__4__Uri=http://ordering.api:8080/hc
- HealthChecksUI__HealthChecks__5__Name=Inventory API
- HealthChecksUI__HealthChecks__5__Uri=http://inventory.api:8080/hc
- HealthChecksUI__HealthChecks__6__Name=Store Gateway
- HealthChecksUI__HealthChecks__6__Uri=http://store.gateway:8080/hc
- HealthChecksUI__HealthChecks__7__Name=Admin Gateway
- HealthChecksUI__HealthChecks__7__Uri=http://admin.gateway:8080/hc
- HealthChecksUI__HealthChecks__8__Name=Marketing Gateway
- HealthChecksUI__HealthChecks__8__Uri=http://marketing.gateway:8080/hc
- HealthChecksUI__HealthChecks__9__Name=Products Aggregator
- HealthChecksUI__HealthChecks__9__Uri=http://products.aggregator:8080/hc
ports:
- "8100:8080"
admin.blazorserver:
container_name: admin.blazorserver
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ApiSettings:AdminGatewayUri=http://admin.gateway:8080"
- "ApiSettings:IdentityUri=http://identity.api:8080"
- "ApiSettings:AppStatusUri=http://applicationstatus:8080"
- "AzureSettings:AssetBaseUrl=${AZURE_STORAGE_BASE_URL}"
- "AzureSettings:MaxFileUploadSize=${MAX_FILE_UPLOAD_SIZE}"
- "AzureSettings:FileUploadTypesAllowed=${FILE_UPLOAD_TYPES_ALLOWED}"
ports:
- "8020:8080"
store.blazorwasm:
container_name: store.blazorwasm
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ApiSettings:StoreGatewayUri=http://store.gateway:8080"
- "ApiSettings:IdentityUri=http://identity.api:8080"
ports:
- "8000:8080"
volumes:
fs_mssqldata:
external: false
postgres_data:
external: false
seq_data:
external: false