173
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications
build:
context:
.
dockerfile:
src/ApiGateways/ApiGw-Base/Dockerfile
mobilemarketingapigw:
image:
eshop/ocelotapigw:${TAG:-latest}
build:
context:
.
dockerfile:
src/ApiGateways/ApiGw-Base/Dockerfile
webshoppingapigw:
image:
eshop/ocelotapigw:${TAG:-latest}
build:
context:
.
dockerfile:
src/ApiGateways/ApiGw-Base/Dockerfile
webmarketingapigw:
image:
eshop/ocelotapigw:${TAG:-latest}
build:
context:
.
dockerfile:
src/ApiGateways/ApiGw-Base/Dockerfile
Additionally, as you can see in the following docker-compose.override.yml file,
the only difference
between those API Gateway containers is the Ocelot configuration file, which is different for each
service container and it’s specified at run time through a Docker volume.
mobileshoppingapigw:
environment:
Dostları ilə paylaş: