Ultimate Docker Compose Tutorial

140,516
0
Published 2024-01-11
Learn Docker Compose - From Zero to Hero in 1 Hour

💙 6-month DevOps Bootcamp: bit.ly/3tKPIvA
🧡 GitLab Course with K8s, Microservices, Multi-Stage: bit.ly/3SaOWkZ

#dockercompose #docker #techworldwithnana

▬▬▬▬▬▬ Thank you Warp for sponsoring this video 👏 ▬▬▬▬▬▬
🙌 Warp is a modern terminal with AI built in: bit.ly/warp-techworldwithnana
🙌 You can sign up with my referral link and get a free unique theme: app.warp.dev/referral/W6Q36Y

Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services.


▬▬▬▬▬▬ R E F E R E N C E S 🔗▬▬▬▬▬▬
► Git repo: gitlab.com/twn-youtube/docker-compose-crash-course
► Docker Installation: docs.docker.com/get-docker/
► Using Secrets in Compose: docs.docker.com/compose/use-secrets/
► Job Market : newsletter.pragmaticengineer.com/p/the-2023-tech-m…


▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
👉 Docker Crash Course:    • Docker Crash Course for Absolute Begi...  


▬▬▬▬▬▬ What you’ll learn in 1 Hour ✅ ▬▬▬▬▬▬
► What is Docker Compose and why it's useful
► Docker Compose Use Cases
► How Docker Compose works
► Docker Compose Syntax: Map Docker commands to Compose definition
► Docker Compose Commands (docker compose up and down vs start and stop)
► DEMO: Run application with 3 services with Docker Compose
► Using Variables in Docker Compose
► Reference Docker image from private repository
► Limitations of Docker Compose
► Docker Compose vs Kubernetes


▬▬▬▬▬▬ Next Step ▬▬▬▬▬▬
👉 Learn Kubernetes:    • Kubernetes Crash Course for Absolute ...  


▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:00 - Intro and Course Overview
00:24 - Pre-Requisites to learn Docker Compose
01:12 - What is Docker Compose
02:52 - Demo - Without Docker Compose
10:09 - Why Docker Compose
11:58 - From Docker Commands To Compose File
16:13 - Create Compose File and start application
20:52 - Control Startup Order
23:22 - Docker Compose Commands (Up and Down vs Start and Stop)
27:18 - Connect own web application
40:36 - Variables in Docker Compose
44:28 - Docker Compose Secrets
46:41 - Use image from private repository
58:36 - Limitations, DockeR Compose vs Kubernetes


▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► bit.ly/3hWOLVT

All Comments (21)
  • Thank you for your comments and many messages about the leaked password. What a community 💙 Already updated it 👍 If this video was helpful, be sure to subscribe and give a like 😊 Also any tips or learnings you want to share with others? 👀
  • @saffanalvy
    You actually make practical and production level oriented tutorials. This is rare. I like it. Thanks.
  • @asaadfayyaz
    Thank you again Nana, You are officially my primary mentor in devops. Your content is so direct and you pack so much in the limited time without us feeling overwhelmed. Keep doing the great work.
  • I really like your videos and how straightforward you explain things without overwhelming . Thanks Nana
  • @albertoruiz146
    I've watched some of your tutorials on Docker and now on Docker Compose. I am learning a lot. Thank you.
  • @nagdali9209
    The way that you introduce the topics extremely amazing.
  • @RemcovanZuijlen
    This tutorial is perfect for people who want to start with docker-compose. I use it for a couple of years already. I was a little surprised you used 'docker build' and 'docker push' to build and push the image to the registry. I use docker-compose for that as well. Just supply the image and build arguments in the yaml file and it works with just 'docker-compose build' and 'docker-compose push' as well. This also makes it less complicated.
  • @dmytro7441
    Two days ago wanted to find similar video on you channel and here it is 😊 Thank you so much!
  • @warpdotdev
    Thank you for such a great demo of Warp's features in your video, Nana! Outside of the sponsorship, you did an amazing job with this video. We loved the comparison of what life would be like without Docker Compose & your comparison of Docker Compose vs Kubernetes at the end. Viewers, if you do end up trying out Warp, please let us know if you run into any issues or have feedback 👍
  • @adeelrana1
    Everything about the containerized environment, Docker, Kubernetes, Prometheus, minikube, Terraform, Ansible and a lot more I learned only from your videos that successfully landed me a great job as a Senior Software Engineer, There is nothing on your channel that I didn't look. Thank you so much for giving the right path.
  • @boring-username
    Names don't need to be creative so long as they're consistent and to-the-point 👍 Your naming convention is great!
  • @raghuveer120
    Fan of your work Nana ❤. Thanks for educating everyone.
  • @TheHerisatry
    love how easy it was to understand the concepts from docker crash course till docker-compose
  • @gandalf6878
    Woahh!!! One of the best 1 hour tutorials ever. Perfectly structured with all the relationships. Thank you!
  • Very helpful vidéo ! Thank you so much Nana. i'm a french fifty years old beginner in DevOps. 👍
  • Hi Nana I've started my DevOps course and I've been following your roadmap....Thank you
  • @MrVernuk
    Thanks, Nana! After this course my docker-compose knowledge has been more structured 😉
  • Thank you Nana for this amazing and high quality video 🙌 Best wishes from Georgia 🇬🇪 მადლობა ❤
  • @kasali310
    Thanks for your great and clear tutorial Nana. A video about well-known issues in docker or any DevOps tool will be great.