Edition 0 Updated to asp. Net core 0



Yüklə 11,82 Mb.
Pdf görüntüsü
səhifə104/288
tarix12.07.2023
ölçüsü11,82 Mb.
#136458
1   ...   100   101   102   103   104   105   106   107   ...   288
NET-Microservices-Architecture-for-Containerized-NET-Applications

Additional resources 

ASP.NET Web API Help Pages using Swagger
https://learn.microsoft.com/aspnet/core/tutorials/web-api-help-pages-using-swagger
 

Get started with Swashbuckle and ASP.NET Core
https://learn.microsoft.com/aspnet/core/tutorials/getting-started-with-swashbuckle
 

Get started with NSwag and ASP.NET Core
https://learn.microsoft.com/aspnet/core/tutorials/getting-started-with-nswag
 
Defining your multi-container application with 
docker-compose.yml 
In this guide, the 
docker-compose.yml
 file was introduced in the section 
Step 4. Define your services 
in docker-compose.yml when building a multi-container Docker application
. However, there are 
additional ways to use the docker-compose files that are worth exploring in further detail. 
For example, you can explicitly describe how you want to deploy your multi-container application in 
the docker-compose.yml file. Optionally, you can also describe how you are going to build your 
custom Docker images. (Custom Docker images can also be built with the Docker CLI.) 


117 
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications 
Basically, you define each of the containers you want to deploy plus certain characteristics for each 
container deployment. Once you have a multi-container deployment description file, you can deploy 
the whole solution in a single action orchestrated by the 
docker-compose up
 CLI command, or you 
can deploy it transparently from Visual Studio. Otherwise, you would need to use the Docker CLI to 
deploy container-by-container in multiple steps by using the 
docker run
command from the 
command line. Therefore, each service defined in docker-compose.yml must specify exactly one 
image or build. Other keys are optional, and are analogous to their 
docker run
command-line 
counterparts. 
The following YAML code is the definition of a possible global but single docker-compose.yml file for 
the eShopOnContainers sample. This code is not the actual docker-compose file from 
eShopOnContainers. Instead, it is a simplified and consolidated version in a single file, which is not the 
best way to work with docker-compose files, as will be explained later. 
version:
'3.4'
services:
webmvc:
image:
eshop/webmvc
environment:

Yüklə 11,82 Mb.

Dostları ilə paylaş:
1   ...   100   101   102   103   104   105   106   107   ...   288




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin