Docker (Part 2) - Docker Compose with .Net Core MVC and API

preview_player
Показать описание
Sample application (.Net Core MVC + .Net Core API) integration sample with Docker Compose.

Docker Compose File Format Versions

Create Docker Images and Containers Sample CLI Commands
#1. Create webapi Image
docker build --tag dotnetcoredemo:webapi --file .\Services\API\DNCD.Service.API\Dockerfile .
#2. Create mvc image
docker build --tag dotnetcoredemo:mvc --file .\Project\DNCD.Project.Portal\Dockerfile .
#3. Create a local network
docker network create --driver nat demo-mynetwork
#4. Create container1
docker run --name main-api --publish 3333:80 --network demo-network1 dotnetcoredemo:webapi
#5. Create container1
docker run --name main-mvc -it --publish 3336:80 --network demo-network1 dotnetcoredemo:mvc

Docker Host to use Wifi Adapter
"dns": [ "192.168.1.1", "8.8.8.8" ]

Docker View Tools
1. Visual Studio 2019 (Go to Views menu - Other Windows - Containers) - Recommended
1. Powershell ISE
2. Visual Studio Code with Extension 'Docker'
3. Docker Desktop Dashboard
Рекомендации по теме
Комментарии
Автор

There are many good docker tutorials, but this one and Part I are the best Docker tutorials for .Net developers. Munaga Venkat is a great teacher. Thank your Sir, Keep it up!

FearGod
Автор

Amazing video! Clear examples with great explanation how the interaction between components works!

mammoetsaus
Автор

Really awesome 👌 content, don't know why this guy is so underrated..😲 Great work... keep going. This will be best tech channel in upcoming time... one advice break this as more bigger series with smaller videos..

nitinkhandelwal
Автор

ek number !! like number 60 is mine.... thank you for creating this. m waiting for your kubernets series

oorja
Автор

Excellent Sessions. Straight to the point...

rakeshrao
Автор

Munaga gaaru, staging ani yenduku pettaru ? just to show we can mention in which environment you wanted to depoy ani ? but how does it signifies the name of the environment ? finally it should run kadandi. Can you please help us to understand on this front. Thanks much in advance.

venkatraohyd
Автор

thank you, sir! this is supper .looking forward to more of your tutorial video

ucanhnguyen
Автор

Hi Venky,

While am running docker-compose its throwing a below error.
docker-compose : The Compose file '.\docker-compose.yml' is invalid because:
At line:1 char:1
+ docker-compose up
+
+ CategoryInfo : NotSpecified: (The Compose fil...nvalid because::String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Could you please help me reg this error. If you don't mind please reply on this.

Thanks in Advance.

jagadeeshg
Автор

Great course. Very helpful. Many Thanks for your contibution in my learning path. :)

shaktisingh-ludm
Автор

How can I add sql database here, and deploy all three components api, hi and db to azure cloud. ??

ashishkumar
Автор

Hi sir, I have a project with 1 web api (use IdentityServer 4) and 1 web portal. Can I build docker for that project? Thanks

vincenttran
Автор

You are superhero dear but I would prefer if you have explained like the dockerfile and why we have used nat and some other stuff. Please accept my comment. Thank you

aytech
Автор

why less likes? this is really good video.

NooOnee
Автор

greate job. Keep it up. Let me know if you have a video on deploying this containers on AKS

sudhirkumbhare
Автор

I am still getting the error "unable to load the service index" even after adding disk ip in the docker settings. Can anybody help

mohammedshahir