You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/Development-Mvc-Core-Docker.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ To get started with using docker for development, there are some prerequisites.
10
10
11
11
Infrastructure contains **mssql-server-linux** as a replacement for your LocalDb and **redis** server for your applications.
12
12
13
-
In your `aspnet-core\docker\mvc\` folder, you will find **run-infrastructure.ps1** file which uses **docker-compose.infrastructure.yml** file to setup your infrastructure. Running the shell script should have a similar output like below.
13
+
In your `aspnet-core\docker\infrastructure\` folder, you will find **run-infrastructure.ps1** file which uses **docker-compose.infrastructure.yml** file to setup your infrastructure. Running the shell script should have a similar output like below.
@@ -20,7 +20,7 @@ After running the script, powershell will be hanging (non interactive) for you t
20
20
21
21
Your applications need certificate to enable https. Normally Visual Studio creates this certificate for you when you run your application for the first time however sometimes it doesn't when docker is involved. To overcome the issue, we create our own self-signed certificate for development.
22
22
23
-
In your `aspnet-core\docker\mvc\` folder, you will find **create-certificate.ps1** file to create the certificate. After running the shell script, you should have a similar output like below.
23
+
In your `aspnet-core\docker\certificate\` folder, you will find **create-certificate.ps1** file to create the certificate. After running the shell script, you should have a similar output like below.
@@ -35,17 +35,17 @@ In your `aspnet-core\docker\mvc\` folder, you will find **run-migrator** file to
35
35
36
36
In your applications **.Web** solution under **docker folder**, set as startup project you want to debug. Visual studio will instantly begin building the container. **Building containers may take some time** for the first time since it will be downloading required base images.
37
37
38
-
Below you can see **docker-compose-mvc-only**running:
38
+
Below you can see **docker-compose-mvc**debugging:
There are three docker solutions you can set as startup project to run;
43
43
44
-
1.**docker-compose-all:** Runs Web.Host, Web.MVC and Web.Public projects together.
45
-
2.**docker-compose-host-only:** Runs only Web.Host project.
46
-
3.**docker-compose-mvc-only:** Runs only Web.MVC project.
44
+
1.**docker-compose-host:** Runs Web.Host project.
45
+
2.**docker-compose-mvc:** Runs only Web.Mvc project.
46
+
3.**docker-compose-public:** Runs Web.Mvc and Web.Public projects together.
47
47
48
-
Each docker-compose files have override.yml files to set the other environments like certification informations, docker volumes or AspnetCore Environment.
48
+
Each docker-compose files have override.yml files to set the other environments like certification informations, docker volumes or AspnetCore environment.
This environment variable overrides the connection string which has been set it appsettings.json. This way you can use both development environments without mixing up the configurations.
58
+
This environment variable overrides the connection string which has been set in appsettings.json. This way you can use both development environments without mixing up the configurations.
59
59
60
-
In some cases, you may get **container conflict errors** when switching between docker projects; like debugging **docker-compose-mvc-only** first then start debugging **docker-compose-all** after stopping the first one.
60
+
In some cases, you may get **container conflict errors** when switching between docker projects; like debugging **docker-compose-mvc** first then start debugging **docker-compose-public** after stopping the first one.
This occurs because the mvc container is still alive even if you stop debugging. To avoid container conflicts, you need to **Clean** the solution (right click to docker project and clean option) to remove the container completely before running the **docker-compose-all** which uses common containers.
64
+
This occurs because the mvc container is still alive even if you stop debugging. To avoid container conflicts, you need to **Clean** the solution (right click to docker project and clean option) to remove the container completely before running the **docker-compose-public** which uses common containers like mvc container.
0 commit comments