Skip to content

Commit 4b1948d

Browse files
Temporal docker-compose.prod.yml still to be reviewed and updated. Pending area is the identity.api config.
1 parent b6d09a2 commit 4b1948d

1 file changed

Lines changed: 86 additions & 47 deletions

File tree

docker-compose.prod.yml

Lines changed: 86 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version: '3.4'
1111
# Set ASPNETCORE_ENVIRONMENT= Development or Production, depending if you want to show up errors while testing.
1212
#
1313
# You need to start it with the following CLI command:
14-
# docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
14+
# docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
1515

1616
services:
1717

@@ -31,7 +31,7 @@ services:
3131
- UseLoadTest=${USE_LOADTEST:-False}
3232

3333
ports:
34-
- "5103:80"
34+
- "80" # The API Gateway redirects and access through the internal port (80).
3535

3636
catalog.api:
3737
environment:
@@ -50,7 +50,7 @@ services:
5050
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
5151
- OrchestratorType=${ORCHESTRATOR_TYPE}
5252
ports:
53-
- "5101:80"
53+
- "80" # The API Gateway redirects and access through the internal port (80).
5454

5555
identity.api:
5656
environment:
@@ -64,13 +64,13 @@ services:
6464
- MarketingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
6565
- BasketApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
6666
- OrderingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
67-
- MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
68-
- WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
67+
- MobileShoppingAggClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5120
68+
- WebShoppingAggClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5121
6969
- UseCustomizationData=True
7070
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
7171
- OrchestratorType=${ORCHESTRATOR_TYPE}
7272
ports:
73-
- "5105:80"
73+
- "5105:80"
7474

7575
ordering.api:
7676
environment:
@@ -90,25 +90,7 @@ services:
9090
- OrchestratorType=${ORCHESTRATOR_TYPE}
9191
- UseLoadTest=${USE_LOADTEST:-False}
9292
ports:
93-
- "5102:80"
94-
95-
ordering.backgroundtasks:
96-
environment:
97-
- ASPNETCORE_ENVIRONMENT=Development
98-
- ASPNETCORE_URLS=http://0.0.0.0:80
99-
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
100-
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
101-
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
102-
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
103-
- UseCustomizationData=True
104-
- AzureServiceBusEnabled=False
105-
- CheckUpdateTime=30000
106-
- GracePeriodTime=1
107-
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
108-
- OrchestratorType=${ORCHESTRATOR_TYPE}
109-
- UseLoadTest=${USE_LOADTEST:-False}
110-
ports:
111-
- "5111:80"
93+
- "80" # The API Gateway redirects and access through the internal port (80).
11294

11395
marketing.api:
11496
environment:
@@ -132,39 +114,34 @@ services:
132114
- OrchestratorType=${ORCHESTRATOR_TYPE}
133115
- UseLoadTest=${USE_LOADTEST:-False}
134116
ports:
135-
- "5110:80"
117+
- "80" # The API Gateway redirects and access through the internal port (80).
136118

137119
webspa:
138120
environment:
139121
- ASPNETCORE_ENVIRONMENT=Development
140122
- ASPNETCORE_URLS=http://0.0.0.0:80
141-
- CatalogUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101
142-
- OrderingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
143123
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
144-
- BasketUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
145-
- MarketingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
146-
- LocationsUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5109
124+
- PurchaseUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5202
125+
- MarketingUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5203
147126
- CatalogUrlHC=http://catalog.api/hc
148127
- OrderingUrlHC=http://ordering.api/hc
149-
- IdentityUrlHC=http://identity.api/hc
128+
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
150129
- BasketUrlHC=http://basket.api/hc
151130
- MarketingUrlHC=http://marketing.api/hc
152131
- PaymentUrlHC=http://payment.api/hc
153132
- UseCustomizationData=True
154133
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
155134
- OrchestratorType=${ORCHESTRATOR_TYPE}
156135
ports:
157-
- "5104:80"
136+
- "5104:80"
158137

159138
webmvc:
160139
environment:
161-
162140
- ASPNETCORE_ENVIRONMENT=Development
163141
- ASPNETCORE_URLS=http://0.0.0.0:80
164-
- PurchaseUrl=http://webshoppingapigw/shopping
165-
- LocationsUrl=http://locations.api
166-
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
167-
- MarketingUrl=http://marketing.api
142+
- PurchaseUrl=http://webshoppingapigw
143+
- IdentityUrl=http://10.0.75.1:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
144+
- MarketingUrl=http://webmarketingapigw
168145
- CatalogUrlHC=http://catalog.api/hc
169146
- OrderingUrlHC=http://ordering.api/hc
170147
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
@@ -207,7 +184,7 @@ services:
207184
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
208185
- OrchestratorType=${ORCHESTRATOR_TYPE}
209186
ports:
210-
- "5108:80"
187+
- "80" # The API Gateway redirects and access through the internal port (80).
211188

212189
locations.api:
213190
environment:
@@ -225,25 +202,87 @@ services:
225202
- OrchestratorType=${ORCHESTRATOR_TYPE}
226203
- UseLoadTest=${USE_LOADTEST:-False}
227204
ports:
228-
- "5109:80"
205+
- "80" # The API Gateway redirects and access through the internal port (80).
229206

230207
sql.data:
231208
environment:
232-
- MSSQL_SA_PASSWORD=Pass@word
209+
- SA_PASSWORD=Pass@word
233210
- ACCEPT_EULA=Y
234-
- MSSQL_PID=Developer
235211
ports:
236-
- "5433:1433"
212+
- "5433:1433" # Important: In a production environment your should remove the external port
237213

238214
nosql.data:
239215
ports:
240-
- "27017:27017"
216+
- "27017:27017" # Important: In a production environment your should remove the external port
241217

242218
basket.data:
243219
ports:
244-
- "6379:6379"
220+
- "6379:6379" # Important: In a production environment your should remove the external port
245221

246222
rabbitmq:
247223
ports:
248-
- "15672:15672"
249-
- "5672:5672"
224+
- "15672:15672" # Important: In a production environment your should remove the external port
225+
- "5672:5672" # Important: In a production environment your should remove the external port
226+
227+
mobileshoppingapigw:
228+
environment:
229+
- ASPNETCORE_ENVIRONMENT=Development
230+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
231+
ports:
232+
- "5200:80" # Important: In a production environment your should remove the external port (5200) kept here for microservice debugging purposes.
233+
# The API Gateway redirects and access through the internal port (80).
234+
volumes:
235+
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
236+
237+
mobilemarketingapigw:
238+
environment:
239+
- ASPNETCORE_ENVIRONMENT=Development
240+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
241+
ports:
242+
- "5201:80" # Important: In a production environment your should remove the external port (5201) kept here for microservice debugging purposes.
243+
# The API Gateway redirects and access through the internal port (80).
244+
volumes:
245+
- ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
246+
247+
webshoppingapigw:
248+
environment:
249+
- ASPNETCORE_ENVIRONMENT=Development
250+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
251+
ports:
252+
- "5202:80" # Important: In a production environment your should remove the external port (5202) kept here for microservice debugging purposes.
253+
# The API Gateway redirects and access through the internal port (80).
254+
volumes:
255+
- ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
256+
257+
webmarketingapigw:
258+
environment:
259+
- ASPNETCORE_ENVIRONMENT=Development
260+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
261+
ports:
262+
- "5203:80" # Important: In a production environment your should remove the external port (5203) kept here for microservice debugging purposes.
263+
# The API Gateway redirects and access through the internal port (80).
264+
volumes:
265+
- ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
266+
267+
mobileshoppingagg:
268+
environment:
269+
- ASPNETCORE_ENVIRONMENT=Development
270+
- urls__basket=http://basket.api
271+
- urls__catalog=http://catalog.api
272+
- urls__orders=http://ordering.api
273+
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
274+
ports:
275+
- "80" # Important: In a production environment your should remove the external port (5120) kept here for microservice debugging purposes.
276+
# The API Gateway redirects and access through the internal port (80).
277+
278+
webshoppingagg:
279+
environment:
280+
- ASPNETCORE_ENVIRONMENT=Development
281+
- urls__basket=http://basket.api
282+
- urls__catalog=http://catalog.api
283+
- urls__orders=http://ordering.api
284+
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
285+
ports:
286+
- "80" # Important: In a production environment your should remove the external port (5121) kept here for microservice debugging purposes.
287+
# The API Gateway redirects and access through the internal port (80).
288+

0 commit comments

Comments
 (0)