Differences Between Docker Compose and Dockerfile by Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 34

  • @cameronmcnz
    @cameronmcnz  2 ปีที่แล้ว

    Here's a more detailed article I wrote about the differences between the Dockerfile and Docker Compose. Please check it out!
    www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Dockerfile-vs-docker-compose-Whats-the-difference

  • @rameenkhan4913
    @rameenkhan4913 ปีที่แล้ว +3

    I have been sitting still for 5.5 hours to understand the concept of docker and files related to it mainly ,browsing the internet and watching hundreds and hundreds of YT videos to grasp the whole concept for doing my assignment with complete understanding and then I found this video perfect rhythm of explaining things. Helped me understand things more clearly, THANKS!

  • @therakag
    @therakag ปีที่แล้ว +1

    Its been a while I have used compose and this video gave me good refresh. Thx mate.

    • @cameronmcnz
      @cameronmcnz  ปีที่แล้ว

      Happy to be of service!

  • @prathameshpawar346
    @prathameshpawar346 2 ปีที่แล้ว +1

    Finally a complete solution for Docker-compose and Dockerfile, Kudos Cameron

  • @joseluisbeltramone599
    @joseluisbeltramone599 3 หลายเดือนก่อน +1

    Another great explanation, here too. Thank you so much, Cameron!

    • @cameronmcnz
      @cameronmcnz  3 หลายเดือนก่อน

      Thanks! I upgraded my audio and video equipment a lot since these were recorded. I should probably redo them, although nothing has really changed in terms of the differences.

  • @MrAbdo32000
    @MrAbdo32000 2 ปีที่แล้ว +4

    Great video. To the point. Helped me know and understand exactly what I wanted. Thanks!

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Thanks for the kind words! Trying to keep the whole Dockerfile versus docker-compose thing as short and concise as possibe!

  • @mevin-three-dplusmoreltd2120
    @mevin-three-dplusmoreltd2120 ปีที่แล้ว +1

    Thank you. A great video. Very clear explanations.

    • @cameronmcnz
      @cameronmcnz  ปีที่แล้ว

      Thanks! I always found people overcomplicate docker compose. It's really not that complicated.

  • @LeandroOliveira-kn9qx
    @LeandroOliveira-kn9qx 5 หลายเดือนก่อน

    Amazing , very good and clear information.

  • @krzysztofprzytocki6199
    @krzysztofprzytocki6199 ปีที่แล้ว

    Really cool video! Eventually something with positive vibe unlike most lifeless yt tutorials.

  • @appacc1600
    @appacc1600 2 ปีที่แล้ว +1

    thank you for your simple and handy description

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Glad I could help. When I was learning Kubernetes, the difference between all these files became confusing. I was surprised there wasn't more straight-forward information explaining it. Glad I could help you out. It helped me out putting this together!

  • @slashd
    @slashd ปีที่แล้ว

    Excellent tutorial, I learned a lot from this 👍

  • @nucleus8706
    @nucleus8706 ปีที่แล้ว

    Many thanks. Excellent explanation.

  • @WaqasNazir-fz6bo
    @WaqasNazir-fz6bo 2 ปีที่แล้ว

    Amazing video. To the point, thank you sir!

  • @Harveysadi
    @Harveysadi 2 ปีที่แล้ว +2

    really thank you ! amazing way to explain

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Thanks! All the docker compose examples I see are often complicated with multiple containers. Sometimes it's good to just simplify. Thanks for the kind words!

  • @kensol123
    @kensol123 ปีที่แล้ว +1

    nice vid man

    • @cameronmcnz
      @cameronmcnz  ปีที่แล้ว

      Thanks! This is one of my favorites!

  • @KatRollo
    @KatRollo ปีที่แล้ว

    You're fun to listen to. Subbed.

  • @novianindy887
    @novianindy887 ปีที่แล้ว +1

    can you do all these with Portainer? since it's GUi it's easier.

  • @sorcererstone3303
    @sorcererstone3303 2 ปีที่แล้ว

    In this example, there is only 1 container service. In the compose file, there is an entry "cpus: 1.5"
    If there are multiple running containers specified in a compose file, does setting cpus to be 1.5 in this nginx service rob system resources (in this case CPU) from concurrent running apps (not just concurrent running docker containers)?

  • @kurtu5
    @kurtu5 2 ปีที่แล้ว +1

    FYI: YAML's acronym has changed because it's used for more than just markup apparently. Its now YAML Ain't Markup Language. At least according to the great wiki.

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว +1

      I simply can't keep up. 🤣Thanks for watching! 🙏

  • @sorcererstone3303
    @sorcererstone3303 2 ปีที่แล้ว

    2 questions regarding the compose file,
    1/ Does the name of the compose file has to be spelled as "docker-compose" for all docker projects?
    2/ What is the different between .yaml and yml? I see both types of extensions. Are they the same?

    • @gbengaoyewole3377
      @gbengaoyewole3377 2 ปีที่แล้ว +1

      1/ YES. The default name is docker-compose.yml
      2/ No significant difference. Both can be used interchangeably

  • @ivandrofly
    @ivandrofly 10 หลายเดือนก่อน

    Thanks good refresh :)

  • @LuisPerez-xl7bk
    @LuisPerez-xl7bk 2 ปีที่แล้ว +1

    amazing video

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Lots of people are confused on the purpose of docker-compose. Hope I helped make it clear.

  • @MilsonPazienza
    @MilsonPazienza 2 ปีที่แล้ว

    Thank you sir! Now i got the ideia ahahah

  • @lildarker4044
    @lildarker4044 2 ปีที่แล้ว

    thank you, so much, i am using portainer ce and the learning curve is geometric lol