Deploying the containerized application with Docker Compose || Docker Tutorial 12

Sdílet
Vložit
  • čas přidán 5. 12. 2019
  • How to deploy your containerized application with Docker Compose.
    In this video I show how to deploy an application, which we built before in a docker image. So, after you package your application in a docker image and save it in a private repository you need to deploy it on some server. In this video I use docker compose to deploy the application.
    This is the last video of the "Docker in Practice" video series:
    Developing with Docker ► • Developing with Docker...
    Docker Compose ► • Docker Compose Tutoria...
    Dockerfile ► • Dockerfile Tutorial - ...
    Private Repository ► • Private Repository exp...
    Deploy your containerized Application ► • Deploying the containe...
    You can check out my videos for the Pre-Requisites:
    ✅ Basic Docker Concepts: • What is a Docker Conta...
    ✅ Basic Commands: • 8 Basic Docker Command...
    For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible.
    ►► Full Docker and Kubernetes Tutorial Playlist: bit.ly/2YGeRp9
    This video is the 12th of a complete series for beginners, where I explain the basic concepts and also show you demo's like deploying your containerized application. At the end of this tutorial you will fully understand Docker and Kubernetes.
    💡 Only interested in Docker?
    ►► Complete Docker Tutorial Playlist: bit.ly/2ymJHbX
    #docker #dockertutorials #devops #techworldwithnana
    -------------------------------------------------------------------------------------
    The complete step-by-step guide to Docker and Kubernetes will include the following content:
    🐳 D O C K E R
    - Container concept
    - Why docker? (image vs. traditional DevOps)
    - Install docker on different operating systems
    - 8 basic commands you need to know
    - Docker vs. Virtual Machine
    - Docker in Practice: Overview of whole development process with Docker (development, continuous delivery, deployment)
    - Develop an application with Docker
    - Docker Compose
    - Dockerfile
    - Private Repository
    - Deploying your containerized application
    - Docker Volumes from theory to practice
    ✵ K U B E R N E T E S
    - Main Kubernetes components (including Pod, Service, Ingress, Volumes, ConfigMap, Secrets, Deployment, StatefulSet)
    - Kubernetes architecture for beginners (master, slave nodes & processes)
    - Understand how does K8s REALLY work? Main Concepts of how to use K8s
    - Minikube, Kubectl - set up the cluster and connect to it
    - Kubectl main commands - Demo
    - Configuration file (YAML) - syntax
    - Kubernetes Namespaces
    - Communication between the pods - basic networking concepts in Kubernetes
    - K8s Deployment in practice - example application deployment (pod + service + Ingress + secret)
    -----------------------------------------------------------------------------------
    ✅ Follow me
    CZcams: ► / techworldwithnana
    DEV: ► dev.to/techworld_with_nana
    Instagram: ► / techworld_with_nana
    Twitter: ► / njuchi_
    Legal Notice:
    Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Docker, Inc.

Komentáře • 45

  • @nathenn
    @nathenn Před rokem +8

    You are running that container on localhost. That's what I could see in the URL. I thought the video showed how to upload it to a real production environment.

  • @Mr.Btraveller
    @Mr.Btraveller Před 3 lety +10

    Hi Nana,
    This is Mr.B from India. I'm watching your video course Docker and Kubernetes beginners from the start. Your way of teaching very good and you going slowly. So, I can able to understand easily. Please include more in-depth knowledge about Kubernetes, Jenkins, customization, and real-time scenarios which helps me to day-to-day work in my company. Also, please include real-time troubleshooting and problem-solving issues. This helps a person like me who started a beginner as a DevOps Engineer.

  • @murad_albarki
    @murad_albarki Před 3 lety

    I can't thank you hard enough for such a video!

  • @nuranamirzaghayeva8730

    So nice explanations. Dummies even can understand. Thanks for videos Nana!

  • @mathewkargarzadeh3158
    @mathewkargarzadeh3158 Před 3 lety +1

    Great video Nana !! Appreciated. I wish you do one docker- compose with app/db dependency and wait time, and with Volume Mount. Thanks again for sharing your knowledge. Mat.

  • @FathyTekitek
    @FathyTekitek Před 3 lety

    great Nana, very instructif, very intuitif video, you are AWESOME. Thanks Nana

  • @nadunsamarasinghe5592

    Great, Got clear picture of the development workflow. Thanks 👍👍

  • @yummywithali
    @yummywithali Před 4 lety +3

    That was great. Thank you for this useful education

  • @balasubramaniam4705
    @balasubramaniam4705 Před 4 lety +2

    Like your way of explaining things. Thanks a ton

  • @bhaidar
    @bhaidar Před 3 lety +1

    Hi Nana, great video as usual. Have you done any tutorial on using Jenkins to create a docker image and push it to AWS? Thanks

  • @vishu1602
    @vishu1602 Před 2 lety

    Great job 👍

  • @redroom07
    @redroom07 Před 2 lety

    thanks mam for this great content

  • @Han-ve8uh
    @Han-ve8uh Před 3 lety

    At 8:08 you mention don't need to use the localhost:port in app because the hostname and port number are already defined in the docker-compose under the service name. However, i can't see where is the hostname defined in the docker-compose?
    I do see the ports defined as 27017:27017 though. Just to confirm, the code in node app is connecting to the 27017 on the right, not left side of the colon right, which is the port of the mongodb in the container?

  • @fatemepourghaemi2587
    @fatemepourghaemi2587 Před 3 lety

    I loved it sm

  • @HemangJoshi
    @HemangJoshi Před 3 lety +1

    good explanation madam.

  • @HindiTechClub
    @HindiTechClub Před 3 lety

    can we push a complete container to a virtual machine in another environment? like a VM running in a DigitalOcean environment.

  • @Deimosster
    @Deimosster Před 3 lety +1

    great!

  • @srujanareddy8623
    @srujanareddy8623 Před 3 lety

    Can we update docker container memory and CPU in online, while container is running?

  • @marctowersap8018
    @marctowersap8018 Před 4 lety +1

    weird, I have mine in an azure container registry instead of AWS. after running docker-compose up, the two mongo containers started fine, but the node container fails over db login issues. but if I just docker start it fires right up.

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety +1

      You have to make sure that the node container configuration in docker-compose file is the same as the configuration you used to create the docker container with docker run command. So for example if you do docker ps -a, you can check the env variables, ports etc of the and compare it to what you have defined in docker-compose. Let me know what you find out!

  • @kelvinkirwa4887
    @kelvinkirwa4887 Před rokem

    mommy ? thank you sooo much .😊

  • @dhanwadc
    @dhanwadc Před 4 lety

    before learning docker any prerequisite is necessary?

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety

      I would say, basic knowledge of command line and some programming knowledge will help in understanding it better.

  • @thevijayraj34
    @thevijayraj34 Před 3 lety

    At the end i realized, author is beautiful :-)

  • @yummywithali
    @yummywithali Před 4 lety

    I have a scenario Nana. I have 2 branches in gitlab. development and master. development is the develop environment and I want to run it at a subdomain of my project. ex. develop.example.com.
    i want to run all of these on docker and with CD/CD in gitlab. How can I integrate this scenarion in my project?
    How can I say docker or jenkins to build for example develop and master seperately?

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety +1

      Hi, Ali. So you can configure 2 build pipelines or 1 multi-branch pipeline for develop and master branches separately. And for each branch you can specify the pipelines steps, which can include building a docker image, pushing it to repo and deploying it to the respective server (dev or prod).
      However in most of my projects, where I have configured multi-branch (develop, master and feature branches) pipelines, the only one building docker images will be the develop branch pipeline, which would also deploy the image on a dev server. Then once tested and accepted, that image will be promoted, meaning copied, to the next stage, like integration server and finally to a prod server.
      Does this answer help you?

    • @yummywithali
      @yummywithali Před 4 lety

      @@TechWorldwithNana Thank you, Nana. yes, it was clear but I don't understand where is the Jenkins position in this scenario? I can config it on gitlab and make images with docker. I can have 2 different servers and handle them in the swarm. where is Jenkins exactly?

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety +1

      Well Jenkins is an alternative to Gitlab CI/CD.
      So in this case, you would have just a git repository on Gitlab which will be connected to Jenkins, where the builds get executed for example, whenever a commit is made.

    • @yummywithali
      @yummywithali Před 4 lety +1

      @@TechWorldwithNana Thank you so much. your educations are applicable. give us more details and more educations. I am waiting for more education :)

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety +3

      Thank you Ali, I try my best to speed up with the video production :)

  • @SK-yb7bx
    @SK-yb7bx Před 3 lety

    Where exactly is the application deployed anywhere?

  • @ni777ant
    @ni777ant Před 3 lety

    @nana
    one question --> How to push docker compose file to docker hub.
    Any one can help me? It would be great help for me. Thanks in advance.

    • @prasadhonrao
      @prasadhonrao Před 3 lety

      why do you want to push docker compose file to docker hub?

    • @ni777ant
      @ni777ant Před 3 lety

      @@prasadhonrao Actually I was confused at that time...but later I used kubernets instead of docker swam and my problem was resolved..

  • @TechWorldwithNana
    @TechWorldwithNana  Před 4 lety +1

    0:00 - Initial Overview of what you learn
    0:59 - Diagram of what we learned so far
    1:51 - Finish the Docker Compose File
    8:34 - Recap of the complete workflow with Docker
    👉🏼 For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible.
    👉🏼 Also please let me know what you want to learn about Docker & Kubernetes.
    Please don't forget to subscribe and give me a thumbs up if you liked my video 🤓

    • @yummywithali
      @yummywithali Před 4 lety +1

      I want to learn the project launching with more detail. many branches and deploying on gitlab and Jenkins. these issues are so prevalent and so many people are searching about them,
      you can give us more examples. these subjects are so popular between developers and they wanna learn them

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety +2

      Yes that's right, thanks for your input. I plan to make videos covering specifically CI/CD setup and configuration. 👩🏽‍🏫

  • @marctowersap8018
    @marctowersap8018 Před 4 lety

    and uh, where is the k8s tutorial??