Docker Compose in 12 Minutes

49 Comments



Learn how to use Docker Compose to run multi-container applications easily. This is the second video in this Docker series.

Learn Docker in 12 Minutes: https://youtu.be/YFl2mCHdv24
Deploy Docker Containers with Docker Cloud https://youtu.be/F82K07NmRpk

Source code https://github.com/jakewright/tutorials/tree/master/docker/02-docker-compose

Support this channel at https://www.patreon.com/jakewright

—————————————-
MORE TUTORIALS

Learn HTML in 12 Minutes: https://youtu.be/bWPMSSsVdPk
Learn CSS in 12 Minutes: https://youtu.be/0afZj1G0BIE
Learn JavaScript in 12 Minutes: https://youtu.be/Ukg_U3CnJWI
Learn PHP in 15 Minutes: https://youtu.be/ZdP0KM49IVk

—————————————-
I deploy Docker containers to a Digital Ocean VPS. Get $10 credit with this link: https://m.do.co/c/791d593997b2
—————————————-

SUBSCRIBE FOR MORE
http://youtube.com/subscription_center?add_user=jaketvee

TWITTER http://twitter.com/jakewrightuk
FACEBOOK https://www.facebook.com/jakewrightuk
INSTAGRAM http://instagram.com/jakewrightuk
SNAPCHAT jakewrightuk

http://jakewright.net

source

49 Comments
    • blank
      Sambhav Mahajan
      May 05, 2022 03:41 am Reply

      Thanks for the video.

    • blank
      SonoPark
      May 05, 2022 03:41 am Reply

      12 min .. nothing else to say except .. well done

    • blank
      Percell DeBerry
      May 05, 2022 03:41 am Reply

      Awesome!! Where's your "Beer Fund" link?

    • blank
      Anthony McLaughlin
      May 05, 2022 03:41 am Reply

      Liked and subscribed, fantastic tutorial!

    • blank
      Shahil Ahmed
      May 05, 2022 03:41 am Reply

      Thank you.

    • blank
      Joseph Cobbinah
      May 05, 2022 03:41 am Reply

      One of the best docker compose videos I have watched. Straight to the point!!

    • blank
      Birhan Nega
      May 05, 2022 03:41 am Reply

      Worth watching, very interesting approach

    • blank
      MrAquirier
      May 05, 2022 03:41 am Reply

      @Jake Wright, 5:13 I guess, you meant "and we give it a directory containing the… Dockerfile", right, – not "docker compose file"?

    • blank
      SHAKIB KHAN 1711661642
      May 05, 2022 03:41 am Reply

      If i created virtualenv for services and website, what would be major change? Shouid I add virtualenv in docker-compose or just to dockerfile?

    • blank
      Shramee Srivastav
      May 05, 2022 03:41 am Reply

      Beautiful composition and delivery. Mind blown 🤯 Great work Jake!

    • blank
      Jon Ron
      May 05, 2022 03:41 am Reply

      Simple yet detailed.

    • blank
      IsKylie
      May 05, 2022 03:41 am Reply

      This was exactly to the point and i learnt something new today .. thanks

    • blank
      Ravish Mallya
      May 05, 2022 03:41 am Reply

      For website service since php code was not within the image doesn't it impact deployment? I mean when you want to finally deploy both service you would ideally want both codes to run within containers right? or am I missing something here?

    • blank
      Obiageli Adegbite
      May 05, 2022 03:41 am Reply

      loved it

    • blank
      Rino Di Paola
      May 05, 2022 03:41 am Reply

      Hi, I'd like to ask you a question. If I have two microservices, how can I run them at the same port but in different paths? For example I want to config a microservice with the path localhost/microservice1/… and another microservice with the path localhost/microservice2/… (always at port 8080). Should I use an API Gateway? I have some difficulties to do this. Thanks.

    • blank
      BrewsBitcoin
      May 05, 2022 03:41 am Reply

      This was a great overview.

    • blank
      Ba Ma
      May 05, 2022 03:41 am Reply

      is build only showing the path to docker -compose file?

    • blank
      Mesut Genez
      May 05, 2022 03:41 am Reply

      3:06 onbuild deprecated

    • blank
      Sidharth Panda
      May 05, 2022 03:41 am Reply

      Thank You Jake its great to learn quick and these videos of 12 min series has easy to refresh.
      how would i get connect with you.

    • blank
      W0lfbane Shika
      May 05, 2022 03:41 am Reply

      (Cough Instructions for anyone who needs their Dockerfile running the requirements.txt):
      In your dockerfile
      after your FROM line enter:
      RUN apt-get update -y &&
      apt-get install -y python3-pip python-dev
      COPY requirements.txt /
      RUN pip install -r requirements.txt
      You'll also want to change CMD ["python… to CMD ["python3…

      Thought I'd include this here since this seems a step you sort of skipped over dude. I'm happy to say it works, though you may want to be more careful in your tutorials in case someone who hasn't seen your previous videos does not know how to set up a requirements txt to be read using docker.

      (I had to google it was a pain to research)

    • blank
      Jce1009
      May 05, 2022 03:41 am Reply

      This is good stuff, used docker a fair amount but had a penny drop moment re volumes after what this vid!

    • blank
      Simone Leo
      May 05, 2022 03:41 am Reply

      gg

    • blank
      陳冠廷
      May 05, 2022 03:41 am Reply

      very clear, thank you very much!

    • blank
      BtsRifer
      May 05, 2022 03:41 am Reply

      This is an awesome video and a tutorial of very HIGH value 👏👏👏

    • blank
      Артём Константинович Козунов
      May 05, 2022 03:41 am Reply

      За 12 минут автор видео обьяснил всю суть. Мой преподаватель не смог этого сделать даже за 2 занятия!!! Огромное спасибо, благодаря автору сделал домашнее задание!!!

    • blank
      Виктор Александрович Богомолов
      May 05, 2022 03:41 am Reply

      Благодаря этому ролику сделал домаху по докеру! Спасибо автору)

    • blank
      CodeJunkie
      May 05, 2022 03:41 am Reply

      Top quality video Sir

    • blank
      Alex Berk
      May 05, 2022 03:41 am Reply

      why you don't need to specify port number in php client?

    • blank
      Romain Rouiller
      May 05, 2022 03:41 am Reply

      Alenouilla , Thanks!!!

    • blank
      Vikrant singh Rana
      May 05, 2022 03:41 am Reply

      Very nicely explain about this complex topic

    • blank
      blissweb
      May 05, 2022 03:41 am Reply

      Just perfect. I'm now a docker guru. 🙂

    • blank
      Prem Seetharaman
      May 05, 2022 03:41 am Reply

      Just Wow

    • blank
      Radu Simionescu
      May 05, 2022 03:41 am Reply

      the dockerfile image has the COPY command to copy some code into /usr/src/app. The docker-compose has a mount instruction instead, in the same folder. I'm wondering what is happening with the copied sources and do we really need the COPY instruction in dockerfile?

    • blank
      Saif
      May 05, 2022 03:41 am Reply

      Quick and straight to the point.

    • blank
      Berkan Yuksel
      May 05, 2022 03:41 am Reply

      Amazing tutorial Jake, thank you so much.

    • blank
      Ns Girish
      May 05, 2022 03:41 am Reply

      very well explained. still valuable in 2021

    • blank
      Giorgio Acquati
      May 05, 2022 03:41 am Reply

      What an awesome tutorial. Clear, fast paced and straight to the point. You're the hero we need.

    • blank
      Mo2men Taiyem
      May 05, 2022 03:41 am Reply

      Great video, thank you.

    • blank
      RazieL
      May 05, 2022 03:41 am Reply

      quick and straight to the point… great video!

    • blank
      starriet
      May 05, 2022 03:41 am Reply

      For future myself and other newbies: 05:14 "docker-compose file"(x) -> "dockerfile"(o). Awesome tutorial.

    • blank
      Sachin Mankotia
      May 05, 2022 03:41 am Reply

      Amazing video. You resolved all my queries related to docker compose 👍

    • blank
      qazaleh fallah
      May 05, 2022 03:41 am Reply

      it was great . thanks for sharing this video 🙂

    • blank
      Jobin Jacob Kavalam
      May 05, 2022 03:41 am Reply

      Just wonderful Jake !

    • blank
      Tiago Sansão
      May 05, 2022 03:41 am Reply

      Is this British accent? His voice seems to be smoother than other British accents I head before

    • blank
      Mr Alex
      May 05, 2022 03:41 am Reply

      Man, you're a genius

    • blank
      makane zak
      May 05, 2022 03:41 am Reply

      Thanks a lot, very useful

    • blank
      Faruk Ahmad
      May 05, 2022 03:41 am Reply

      It was to the point. thanks for the video.

    • blank
      TC
      May 05, 2022 03:41 am Reply

      man this explanation is just so good !!

    • blank
      Jay G
      May 05, 2022 03:41 am Reply

      Man ! You nailed it.

Leave us a comment