Updated 08. Setting up and Deploying eShopOnContainers to Windows Containers (markdown)
parent
ab25883ccf
commit
cc7c34dfe4
@ -26,19 +26,28 @@ Then right click in the Docker icon on the notification bar and select the optio
|
|||||||
## Deploy Windows Containers of eShopOnContaners
|
## Deploy Windows Containers of eShopOnContaners
|
||||||
Since eShopOnContainers is using Docker Multi-Stage builds, the compilation of the .NET application bits is now performed by Docker itself right before building the Docker images.
|
Since eShopOnContainers is using Docker Multi-Stage builds, the compilation of the .NET application bits is now performed by Docker itself right before building the Docker images.
|
||||||
|
|
||||||
You can directly run `docker-compose build`:
|
The esasiest way to run/start the Windows Containers of eShopOnContainers is by running this PowerShell script:
|
||||||
|
|
||||||
|
`start-windows-containers.ps1`
|
||||||
|
|
||||||
|
You can find this script at /cli-windows/start-windows-containers.ps1
|
||||||
|
|
||||||
|
Otherwise, if you run it directly with `docker-compose up` see the section below on the environment variables you will also need to configure.
|
||||||
|
|
||||||
|
Under the covers, in any case, the important commands are the following:
|
||||||
|
|
||||||
|
Build bits and Docker images:
|
||||||
```
|
```
|
||||||
docker-compose -f docker-compose-windows.yml build
|
docker-compose -f docker-compose-windows.yml build
|
||||||
```
|
```
|
||||||
|
|
||||||
Then deploy the containers with the specific configuration for Windows Containers:
|
Deploy the containers with the specific configuration for Windows Containers:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker-compose -f docker-compose-windows.yml -f docker-compose.override.yml -f docker-compose.override.windows.yml up
|
docker-compose -f docker-compose-windows.yml -f docker-compose.override.yml -f docker-compose.override.windows.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note**: You need to use these three files when running docker-compose up.
|
**IMPORTANT**: You need to use these three files when running docker-compose up and to have te environment variables related to the localhost loopback limitation mentioned at the end of this post.
|
||||||
|
|
||||||
## RabbitMQ user and password
|
## RabbitMQ user and password
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user