Skip to content

Commit 2d4f9d3

Browse files
committed
Add ESHOP_AZURE_SERVICE_BUS variable from .env with default value
1 parent ad1637e commit 2d4f9d3

5 files changed

Lines changed: 11 additions & 11 deletions

docker-compose.override.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '2.1'
22

33
# The default docker-compose.override file can use the "localhost" as the external name for testing web apps within the same dev machine.
44
# The ESHOP_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
@@ -14,7 +14,7 @@ services:
1414
- ASPNETCORE_URLS=http://0.0.0.0:80
1515
- ConnectionString=basket.data
1616
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
17-
- EventBusConnection=rabbitmq
17+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
1818
ports:
1919
- "5103:80"
2020

@@ -24,7 +24,7 @@ services:
2424
- ASPNETCORE_URLS=http://0.0.0.0:80
2525
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
2626
- ExternalCatalogBaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
27-
- EventBusConnection=rabbitmq
27+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
2828
ports:
2929
- "5101:80"
3030

@@ -45,7 +45,7 @@ services:
4545
- ASPNETCORE_URLS=http://0.0.0.0:80
4646
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
4747
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
48-
- EventBusConnection=rabbitmq
48+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
4949
ports:
5050
- "5102:80"
5151

docker-compose.prod.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '2.1'
22

33
# The Production docker-compose file has to have the external/real IPs or DNS names for the services
44
# The ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP environment variable is taken, by default, from the ".env" file defined like:
@@ -19,7 +19,7 @@ services:
1919
- ASPNETCORE_URLS=http://0.0.0.0:80
2020
- ConnectionString=basket.data
2121
- identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
22-
- EventBusConnection=rabbitmq
22+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
2323
ports:
2424
- "5103:80"
2525

@@ -29,7 +29,7 @@ services:
2929
- ASPNETCORE_URLS=http://0.0.0.0:80
3030
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
3131
- ExternalCatalogBaseUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
32-
- EventBusConnection=rabbitmq
32+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
3333
ports:
3434
- "5101:80"
3535

@@ -50,7 +50,7 @@ services:
5050
- ASPNETCORE_URLS=http://0.0.0.0:80
5151
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
5252
- identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
53-
- EventBusConnection=rabbitmq
53+
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
5454
ports:
5555
- "5102:80"
5656

docker-compose.vs.debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '2.1'
22

33
services:
44
basket.api:

docker-compose.vs.release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '2.1'
22

33
services:
44
basket.api:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '2.1'
22

33
services:
44
basket.api:

0 commit comments

Comments
 (0)