Updated 08. Setting up and Deploying eShopOnContainers to Windows Containers (markdown)

Cesar De la Torre 2018-01-04 16:44:59 -08:00
parent ab25883ccf
commit cc7c34dfe4

@ -24,21 +24,30 @@ In Windows 10 you need to set Docker to use "Windows container" instead of Linux
Then right click in the Docker icon on the notification bar and select the option "Switch to Windows Containers". If you don't see this option and see the option "Switch to Linux Containers" you're already using windows containers.
## Deploy Windows Containers of eShopOnContaners
Since eShopOnContainers is using Docker Multi-Stage builds, th ecompilation 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
```
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
```
**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