.NET 7 💥 -- How to containerise Web API with Docker & use PostgreSQL

preview_player
Показать описание
In this video we will be going to be containerising a .NET 7 API with PostgreSQL and Docker Compose

Support me on Patreon to access the source code:

Let us connect:

Support my work:

Hire Me:

WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.

GET IN TOUCH:

#dotnet #postgresql #docker
Рекомендации по теме
Комментарии
Автор

11:48 Connection string
36:54: Docker compose creation
41:00 Setting the connection string on docker-compose
41:10 menitioned that he connections tringwill be auto-injected into app
50:17 : API testing tool Insomnia (like Postman)

Remarks: Why the environment variable name in docker compose is not the same as in appsettings

ivandrofly
Автор

Thank you much, I was stuck on this step, i never realized i'm using production evn and kept on thinking why i'm not getting swagger, lol

stoic
Автор

Amazing video! thank you so much for this. An automatic migrations tutorial would also be great, keep it up!

SingleServingMimic
Автор

Awesome video, I will love to see a Dev environment vs stage, and production environment; the database upgrades thru the EF core migration script, and the implications of always getting the latest version of the database. Overall well presented. Mine only advises having all the commands on an editor and copying and pasting.

agustinbcu
Автор

Would be handy if you make a video about the migrations being run automatically

wolfVFXmc
Автор

52:03 thanks for video and please do video with first option (migration to run automatically)

mirkozaper
Автор

Thank you Lawand. Your lecture is clean, clear and concise

proffnick
Автор

Thank you so much Lawand. It's bcoz of you I was able to learn about docker and execute it. Bigg help

chinmaykaviskar
Автор

Thank you so much. It's so useful. Especially the part where database migrations inject in the db container.
If not you, instead of 1 day I'd spend 1 week or more to containerize my project.

xender
Автор

Thank you so much Mohamad for such great content, have put notification on!!! Much love from South Africa!

kshooter
Автор

Thank you Mohamad, ı made a compose file for my backend api + db + redis service and it's working without a problem. I am learning so many stuff from you. I used Dockerfile and wants to learn a bit about compose. Thanks so much again ^^

Ertan_Taner
Автор

This is so helpful with step by step explanation. Thank you so much.

Shanks-at-Work
Автор

your explanations are really understandable and with a good pace

alihamzaansari
Автор

you nailed it bro
ربنا يجازيك كل الخير يارب

MegaMaistro
Автор

How can he actually create migrations with an empty connectionString?
When I tried that, I got an error: The string argument 'connectionString' cannot be empty.

oleksiihytsiv
Автор

great stuff, can you create a video about dotnet core clear architecture (onion) with a simple repository pattern and unitofwork? i would love to see your approach

HilalYazbeck
Автор

35:25 I stuck at this moment and I can't force API to throw those exceptions. In browser I got 404. I'll try later. Effects in the end are worth trying. Thank you for your effort

adam-xtte
Автор

Good afternoon, so I have a problem starting my applicattion is this error "warn: Failed to determine the https port for redirect."

andresviera-ecuador
Автор

One good practice (always) should be, even in demos, always use real world production code, so that even a beginner can learn the real world code, do a purpose build demo, not just for "simple demo".
Don't do what 99% of other online tutors are doing (just demo purpose tutorials). There are tutorials for beginners, but not for experienced ones. Don't they need some advance level expertise?
Also, can you make a demo on calling 500–1000 APIs at the same time and just wait for the ok 200 response.? What would be the best practical approach? I am asking you as you are the enterprise architectect.

TALHA.FF.
Автор

Super Thanks How we can run migrations automatically un docker-compose.yml file?

jesusmendoza