Docker Compose | Build and start a Django project with Docker Compose & work in a Docker Container

preview_player
Показать описание
In this Docker compose tutorial we start an application with Docker Compose and run it in a container. I will then show you how to configure a volume to build a mirrored folder from your computer and the container. This way you can develop on your computer but host the application in a container. This is a docker compose tutorial for beginners. Take your first steps with Docker containers.

00:00 Introduction and underpinning knowledge
03:27 Building the Dockerfile
07:00 Docker-Compose File
13:37 Docker Compose Build image
15:17 Docker Compose Run (creating the volume link and new project)
18:00 Docker Compose up (start new container)

Code Repository:

Part#2

🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.

👍SUBSCRIBE to get more free tutorials, courses and code snippets!
Рекомендации по теме
Комментарии
Автор

you are truly a life savior, you have no idea. Great video, clear and simple explanation thank you so much

matheusandrade
Автор

so clear. Complexity simplified. Absolutely fantastic!

shaheerzaman
Автор

Big thank to this tutorial. I can finally understand every line in both dockerfile and docker compose. Other youtube videos I've watched don't go that detailed and clear. Thank you so much!!

teresaify
Автор

Sir, you are really really good at teaching. I mean really good. Of all the youtube videos I watch (and I watch a lot), you're in my top 3 youtuber on tech tools ! Thank you sir !

mediatwinkleTV
Автор

i've wathced so many tutorials, now i finally understand. sincerely, many many thanks to you.

catta
Автор

I requested for this like just last day and you uploaded it today.
Thank you so much ❤️

shreyashsrivastava
Автор

🙇 I bow my head sir! this Tutorial helped me a lot.

mohankrishna
Автор

Thanks from Vietnam, amazing as always

bumblebeeable
Автор

Clean and direct content, very focused, good job..!

felixfigueroa
Автор

You're doing a great job, Zander!

akhillshetty
Автор

thank you for your awesome tutorials around the django framework

TheAlibigdeli
Автор

This is really easy to understand, thanks Very Academy.

LifeOf
Автор

Yes, it was very useful. Thanks again.

dodokwak
Автор

Thank you very much, its very informative, helpful

RABWA
Автор

Thanks for sharing this. Very good explanation.

romainbey
Автор

Excellent job buddy. You have cleared all my doubts. Thank you so much.

AshisRaj
Автор

Hi, thanks a lot for this tutorial! You explain it in a great way. There is one point I did't get.
Why should I run the "docker-compose run --rm app django-admin startproject core." command? Why not without docker-compose like in Part 1? The content of the folder will by copied to the container anyway, isn' it?

MrHasenboerga
Автор

Thank you. Can you do videos about deploy to production?

naheliegend
Автор

i had the issue where
$docker-compose run --rm app django-admin startproject core .
didn't work to create a core folder!
I fixed it by changing the working directory in the docker file from /app to /django. You have to delete the container image in docker before trying the command again! hope this helps.

GoziePO
Автор

Hi and thanks a lot for yet another amazing tutorial! One question if I might, why are we specifying the command to create a new Django "core" App on the CLI with the docker-compose run command and we are not placing it in the command: line inside the docker-compose.yml file? Couldn't we chain this command and the run server command there and avoid passing it manually? Thanks!

AndreBeeDXB