Docker Compose will BLOW your MIND!! (a tutorial)

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • We don’t live in Docker containers, keep yourself safe with Bitdefender Premium Security: bit.ly/BitdefenderNC (59% discount on a 1 year sub)
    Stop spinning up Docker Containers like your grandparents, use Docker Compose instead! No more worrying about typing a million commands to get your whole Docker network and Containers running, do it in a nice pretty YAML file that you can deploy, stop, and redeploy with ease!
    🔥🔥Commands and hacking lab YAML file!: ntck.co/compose
    Vulhub GitHub link: ntck.co/vulhub
    🔥🔥Join the NetworkChuck Academy!: ntck.co/NCAcademy
    **Sponsored by Bitdefender
    SUPPORT NETWORKCHUCK
    ---------------------------------------------------
    ➡️NetworkChuck membership: ntck.co/Premium
    ☕☕ COFFEE and MERCH: ntck.co/coffee
    Check out my new channel: ntck.co/ncclips
    🆘🆘NEED HELP?? Join the Discord Server: / discord
    STUDY WITH ME on Twitch: bit.ly/nc_twitch
    READY TO LEARN??
    ---------------------------------------------------
    -Learn Python: bit.ly/3rzZjzz
    -Get your CCNA: bit.ly/nc-ccna
    FOLLOW ME EVERYWHERE
    ---------------------------------------------------
    Instagram: / networkchuck
    Twitter: / networkchuck
    Facebook: / networkchuck
    Join the Discord server: bit.ly/nc-discord
    0:00 ⏩ Intro
    0:43 ⏩ What do you need?
    2:04 ⏩ Let’s do some composing
    8:17 ⏩ Time to get a little crazy!!(With Containers)
    10:46 ⏩ and let’s get a little crazier
    14:41 ⏩ Now let’s deploy a vulnerable hacking lab!
    15:44 ⏩ Outro
    AFFILIATES & REFERRALS
    ---------------------------------------------------
    (GEAR I USE...STUFF I RECOMMEND)
    My network gear: geni.us/L6wyIUj
    Amazon Affiliate Store: www.amazon.com/shop/networkchuck
    Buy a Raspberry Pi: geni.us/aBeqAL
    Do you want to know how I draw on the screen?? Go to ntck.co/EpicPen and use code NetworkChuck to get 20% off!!
    #docker #networking #containers
  • Věda a technologie

Komentáře • 614

  • @NetworkChuck
    @NetworkChuck  Před rokem +42

    We don’t live in Docker containers, keep yourself safe with Bitdefender Premium Security: bit.ly/BitdefenderNC (59% discount on a 1 year sub)
    🔥🔥Commands and hacking lab YAML file!: ntck.co/compose
    Vulhub GitHub link: ntck.co/vulhub
    🔥🔥Join the NetworkChuck Academy!: ntck.co/NCAcademy

    • @anandu6859
      @anandu6859 Před rokem +3

      I live in linux

    • @aj0413_
      @aj0413_ Před rokem +1

      Windows Defender has reached parity with aftermarket security suites nowadays; a VPN + uBlock Origin + good browser settings is all most users need to be generally safe

    • @jasonstahl73
      @jasonstahl73 Před rokem +1

      I've been using BitDefender for years now. Gave me a bit of trouble when I was using my computer to mine Etherium, but I was able to get it working.
      I managed to pass CompTIA Security+ Exam today. Got a 771, so not super passing, but passing. Next, I think I'll go for Linux+ once I start the new job that I needed the Security+ for.

    • @cyberdevil657
      @cyberdevil657 Před rokem

      Lucky I've watched almost all your videos chuck 😁 You are a legend!

    • @aj0413_
      @aj0413_ Před rokem

      @tradde11 Aftermarket security software is pretty much snake oil scams nowadays; as you probably know good cyber hygiene can be all done via FOSS today anyway. I was pretty disappointed to see the Bitdefender sponsor link for this video, which is why I said something

  • @hiroe486
    @hiroe486 Před rokem +251

    The day has finally come. I got my first IT job. And I want to thank you Chuck, you are a part of this Universe that brought me closer to this job. Your videos are amazing and inspiring. Thank you for showing me how fun networks can be. Have an amazing day, week, month and life!

    • @eamonburns9597
      @eamonburns9597 Před rokem +4

      How is your job so far?

    • @Krono159
      @Krono159 Před rokem +2

      Ayooo!! Congrats! :D

    • @clovis20
      @clovis20 Před 5 měsíci

      Hey, im at the same place as you were before. How hard it was to find a job? Im pretty nervous

    • @james.houlder
      @james.houlder Před 4 měsíci

      Epic. Congratulations! Chucks videos are amazing. 😊

    • @navinkumar6388
      @navinkumar6388 Před 2 měsíci +1

      Congratulations 🎉👏👏
      With Love from India 🇮🇳

  • @Psiclone
    @Psiclone Před 2 měsíci +11

    As a newbie desperately trying to find a simple tutorial on how to use Docker I am instantly overwhelmed by this video.

    • @Aexoana_
      @Aexoana_ Před 2 měsíci +3

      i was overwhelmed too but i quickly understood that docker compose is just a permanent file with the commands used to start a docker container in the form of a yaml file.

    • @MyOwnPufferFish
      @MyOwnPufferFish Před měsícem

      Did you check out his other 2 docker videos? You should deffo start from that if not. Also you can checkout NetNinja's docker series, it helped me a lot !

    • @angryox3102
      @angryox3102 Před 28 dny

      Use ChatGPT or Perplexity for help. Start off small and build from there. It made sense once I did a simple webook script, and I’m trying to build from there.

  • @dimaj1
    @dimaj1 Před rokem +75

    Great video! Thanks!
    I believe that YAML is quite forgiving and you can avoid quoting everything (though it doesn't hurt!). Also, one important thing about compose files is that those environment variables (as well as pretty much any parameter you specify) can be taken from your environment variables or from a ".env" file that is in "KEY=VALUE" form. On top of that, you can still assign default values if value hasn't been provided! Here's a quick example:
    ports:
    - ${WEB_PORT:-8080}: 80
    That will use your environment variable 'WEB_PORT" and if it doesn't exist, assign "8080" to it!

    • @user-mi7lj9hg8x
      @user-mi7lj9hg8x Před rokem

      👆👆👆🇺🇸🇺🇸.

    • @Ozymandias1
      @Ozymandias1 Před rokem

      Using tabs makes it easier for humans to read. The machine doesn’t care.

    • @magicmulder
      @magicmulder Před 11 měsíci +6

      @@Ozymandias1The tabs are actually important in YAML and not just for human readability.

    • @llchristubell
      @llchristubell Před 7 měsíci

      Yea and using tabs literally doesn’t seem to work. Had to be 2*spacebar - which i think is what nano does for you, but not desktop app text editors.

  • @alldaytherapy2919
    @alldaytherapy2919 Před rokem +5

    "restart: unless-stopped" is honestly the better option from my experience.

  • @airforcedude08
    @airforcedude08 Před rokem +2

    Your videos are SO engaging, fun to learn, and even fun to watch when I already know the material (rarely). One of my favorite content creators on CZcams by far

  • @seankingsland
    @seankingsland Před rokem +5

    Chuck your killing it man. It's like going to disneyland and walking away smarter everytime. There is just no competition you're true calling was always to be a mentor man. Absolutely insane how much anyone can learn in a few minutes from any of you're videos.

  • @morningreis5018
    @morningreis5018 Před rokem +1

    Hey man, recently discovered your channel and I've been binge watching all the past videos. I have learned seriously so much and I'm about to completely revamp my homelab using some of the things I've learned. Thank you!

  • @theK4b6
    @theK4b6 Před rokem +2

    because of your intro into docker I was able to set up an nginx server and a vaultwarden. I'm also working on hosting some of my simple games I'm leaning to make in bevy myself. Thank you for taking the time to create these videos.

  • @ctoro791
    @ctoro791 Před rokem

    quick and easy introduction, thanks Chuck, when you start with docker everything becomes easier, no more complicated configs nor have to open ports, because you are no longer using a service, usually people just uninstall/remove it and forget to close those ports

  • @MICOLO253
    @MICOLO253 Před rokem +4

    Heck yeah, I was waiting for docker compose since last docker video. Docker is freaking awesome

  • @coolmcdude
    @coolmcdude Před rokem +4

    Bro you are literally teaching me super powers. I needed a print server and just made cups container in like 2 minutes. THIS IS OP.

  • @Mayur7Garg
    @Mayur7Garg Před rokem +20

    Using bind mounts and docker compose, you can actually also do the development directly inside docker containers without needing to develop first and then move the project to containers. You can have separate YAML files for developing and running the containers. I am currently working on an article that illustrates it using a very minimalistic example.

    • @esspi9
      @esspi9 Před 8 měsíci +2

      Can you share that please.

    • @max-hill-4
      @max-hill-4 Před 5 měsíci +1

      would love to read!

    • @98SE
      @98SE Před 2 měsíci

      @@max-hill-4 Same here!

  • @abdulrafaykhan
    @abdulrafaykhan Před rokem

    Tbh the best, super beginner-friendly tutorials out there man! More power to you!! 😇

  • @maheshdadi282
    @maheshdadi282 Před rokem +2

    I truly love your content and the way your explanation is awesome which really helps to understand things so fast.

  • @YannMetalhead
    @YannMetalhead Před rokem

    Chuck, you are the very best teacher regardless of subject, I ever saw. Congratulations!

  • @drumguy1384
    @drumguy1384 Před rokem +7

    restart: unless-stopped is generally a wiser idea imo. restart: always will cause it to restart even if you deliberately tell it to go down. This can be a problem if you have a misconfigured container acting in a way you didn't intend and is perhaps destroying your data. I prefer having the option to manually stop a container without it automatically starting again, especially if it is behaving badly.

  • @cyberdevil657
    @cyberdevil657 Před rokem +1

    Lucky I've watched almost all your videos chuck 😁 You are a legend!

  • @hckmar
    @hckmar Před rokem +1

    bro! awesome videos like always! such a great vibe yo! Plus, I love docker more than ever

  • @lukaszl9542
    @lukaszl9542 Před 6 měsíci

    what i enjoy about your tutorials is the simplicity of the language. you dont use the complex tech language, where at some clips i need to re-watch a couple of times to really understand. keep up the good work mate.

  • @Art-kz6zf
    @Art-kz6zf Před rokem

    Awesome video editing and soundscape! I knew docker compose already, but i watched this video just because it was done in such a cool way 😄

  • @mahmoudshihab
    @mahmoudshihab Před rokem +1

    I love your content.
    Genuinely entertaining, educational, motivational, and inspiring.
    I always learn something new and want to explore so many things!
    Thank you and God bless.

  • @abdullahjawed1944
    @abdullahjawed1944 Před rokem +1

    Thanks Chuck, for this video
    I was searching for docker videos

  • @binodb.k.3593
    @binodb.k.3593 Před rokem +1

    I must say this was the best week. We got 4 videos from you and learned so much.

  • @LivinDadLife
    @LivinDadLife Před rokem +5

    Learned so much from these videos and have spun up all my personal servers with Docker! Thanks Network Chuck for your knowledge share!

  • @mehmetca4735
    @mehmetca4735 Před rokem

    The docker-compose video i have ever needed. Thank you so much!

  • @martinvogt9230
    @martinvogt9230 Před rokem

    Hey Chuck!
    Thank you so much for the great videos. I've been a Win Sysadmin for 10 years and still learn something with each of your videos. Especially the Linux Command or Docker videos have helped me a lot in my daily business.

    • @illegalsmirf
      @illegalsmirf Před rokem

      By Win Sysadmin, you mean GUI jockey? How do you feel about MS making on-prem Server obsolete? And forcing you to do everything in PowerShell?

  • @samibouakeldev
    @samibouakeldev Před rokem +3

    You're such a great guy, the best tech youtuber ever your way of explaining things make it mush easier to understand thank you very very mush for your efforts 🙏♥

  • @meowcula
    @meowcula Před rokem +6

    I love docker-compose, so much easier than messy vanilla docker commands. I probably do things wrong, but I have a separate yaml file for each service (or group of services) I want to run, allowing me to manage them a bit more easily. No need to debug a huge complex default yaml file. Also, I heard docker-compose (which is a python script) is deprecated, and is being replaced by now-inbuilt functions of docker itself using "docker compose ". Haven't really looked into that yet.

  • @imyashkale
    @imyashkale Před rokem +1

    You present any content with all your energy and with care. thanks

  • @SpragginsDesigns
    @SpragginsDesigns Před rokem +49

    I always give my students your channels URL. I believe between you, David and a few others there is so much to learn from IT, Cybersecurity and Web Development. Thanks!

    • @muhammedatasoy7711
      @muhammedatasoy7711 Před rokem

      Mind giving me those as well? I wish to gain as much knowledge. And if they are as nice as chuck, i wish to view them

    • @vicmac3513
      @vicmac3513 Před rokem +1

      The Digital Life, Level1Linux, Jeff Geerling. Also searching with what you want learn is effective way and choose the videos less than 2 years old if it's about IT.

    • @juls5603
      @juls5603 Před rokem +2

      @@muhammedatasoy7711 if youre just starting with linux make sure to look into the playlist of tutoriallinux's Channel: The Linux Basics Course: Beginner to Sysadmin, Step by Step (seems old and outdated but it covers core concepts that havent changed since and is very good explained)

    • @AthelstanEngland
      @AthelstanEngland Před rokem

      @@muhammedatasoy7711 Tim Corey pretty good too and detailed.

  • @Truesilverful
    @Truesilverful Před rokem +1

    This video is so smooth that it hurts. Well done!

  • @truculenttabasco
    @truculenttabasco Před rokem

    Good intro man, thanks for the insight. Appreciate you taking the time to learn it and make a video 🤙🏼

  • @futuregootecks
    @futuregootecks Před rokem

    Damn chuck, the algo always shows me your videos about just the right video at just the right time

  • @erickmiranda2070
    @erickmiranda2070 Před 6 měsíci

    Man! you are the kind of teacher every parent dream to teach their kids! legend!

  • @indyspud
    @indyspud Před 21 dnem

    Thank you for this video, I've just fallen down the Docker rabbit hole and this has just answered so many questions I had.

  • @tcgys
    @tcgys Před rokem +2

    I love your videos they are the best. Keep it up!

  • @mertcikla
    @mertcikla Před rokem

    just subbed because of the progress bar during the sponsor segment. thank you for respecting my time ❤

  • @koysdo
    @koysdo Před rokem +1

    As always, YOUR video is the one that helps me understand the WHY and HOW of whatever IT issue I have. 🎉☕️

  • @depressivepumpkin7312
    @depressivepumpkin7312 Před rokem +4

    Thank you, now I can make my parents proud of me with a single command

  • @ShujitoDM
    @ShujitoDM Před rokem +1

    Docker compose is a true marvel, I even know more about it than normal docker

  • @bibeksitaula5438
    @bibeksitaula5438 Před rokem

    You are the best tutor on CZcams for me so far!!

  • @volumeleet7667
    @volumeleet7667 Před rokem

    Yo dude, your videos are a blessing. Even though I already know some stuff, you come up with more shit explained like if I was 5. Going through every of your videos right-now.

  • @HappyHitman
    @HappyHitman Před rokem

    This video gave me everything I needed today. Thank you, you have a new subscriber.

  • @wormhole_cl
    @wormhole_cl Před rokem +1

    I love your videos Chuck!

  • @treasuresforus
    @treasuresforus Před 21 dnem

    Hey I would just like to say thank you for your videos. They have helped me in my journey of learning to become a software engineer.

  • @synthmania7275
    @synthmania7275 Před 5 měsíci

    Thank you so much Chuck!! for your Tutorials!! I just got a new MacBook and loving how fast it is on the M3 chips!! God Bless!

  • @ephysio7357
    @ephysio7357 Před rokem +2

    Great video as always

  • @Ethorbit
    @Ethorbit Před rokem

    Docker makes server management so easy.
    The fact that I can just deploy my entire server through a single command makes switching vps providers / server hardware so much easier, knowing that I would be able to recreate the environment exactly how it was.
    This is the same reason NixOS is a great linux distro too, you can put your entire system configuration into config files and install it or switch it out with a single command (although not nearly as easy as Docker since Nix uses its own programming language)

  • @Asherstitusworld
    @Asherstitusworld Před rokem +2

    Super video Chuck Your videos are awesome And informative Chuck

  • @tsunghsiwu
    @tsunghsiwu Před rokem

    you're funny in explaining boring techy stuff. the content is clear and easy to grasp. good 👍

  • @ArnabDas
    @ArnabDas Před 8 měsíci

    Just wanted to say thanks for explaining this so clearly.

  • @stephenremillard9462
    @stephenremillard9462 Před rokem +1

    Wow! Very good and instructive video.

  • @WPGinfo
    @WPGinfo Před rokem +1

    GREAT video. I learned a lot, I think 😃. Time to mess around a bit and see what I can do with this. 🤞🤞🤞🤞🤞🤞!!

  • @youjean83
    @youjean83 Před rokem +1

    Great video as always! I'd love to see docker swarm on a cluster in action and hear your opinion if compared to K8S.

  • @toramax80
    @toramax80 Před rokem

    Нарешті хтось просто і зрозуміло розповів про те як працює Докер )) Дуже дякую Чак, ти супер!
    Finally, someone simply and clearly explained how Docker works )) Thank you very much Chuck, you are great!

  • @muhammadtaha2578
    @muhammadtaha2578 Před rokem +1

    i learn alot with the help of yous videos (sorry for my weak english)

  • @AnthonyJames7
    @AnthonyJames7 Před rokem +1

    Awesome job Chuck thanks

  • @Reckless917
    @Reckless917 Před 4 měsíci

    Ain't no way it's this easy?? This was such a nice and quick intro into the docker-compose issue I've always wanted.

  • @ananthuskumar1286
    @ananthuskumar1286 Před rokem +1

    Thanks man, really appreciate your effort.

  • @lucaterraneo7274
    @lucaterraneo7274 Před 11 měsíci

    You really got communication skills! Great explanation, thank u

  • @petercheung63
    @petercheung63 Před rokem

    you made very good videos, thanks. And your Viking style is very unique.

  • @VijetCP
    @VijetCP Před rokem

    So much enthusiasm. You are a great teacher!
    Good shit!

  • @JeriReino
    @JeriReino Před měsícem

    I love your enthusiasm brother .

  • @noblenetdk
    @noblenetdk Před měsícem

    I love your energy! Far the best video today 🎉

  • @shetuamin
    @shetuamin Před rokem +1

    Nice video. You're teaching skill so good.

  • @DragonXVI
    @DragonXVI Před měsícem

    Always fun and informative!

  • @magicmulder
    @magicmulder Před 11 měsíci

    I downscaled from a full Proxmox server running several VMs to a nice little Docker host running a bunch of containers. So much more flexible for my use case (bunch of small services and maintenance hosts).

  • @Samwarren1982
    @Samwarren1982 Před rokem +2

    Chuck! Wish I had this months ago! I followed a tutorial from another youtuber for creating a wordpress website with NGINX reverse proxy and did the whole thing on Raspberry pi!.
    I have since added a bitwarden host and portainer to manage my docker instance.

  • @LuiFerKoala
    @LuiFerKoala Před rokem +2

    This is so awesome!!

  • @JoeNgera
    @JoeNgera Před měsícem

    Love your work man.

  • @riverwolf695
    @riverwolf695 Před rokem +1

    I could I use this video like a week ago. Instant I have to do my own research on own they work, and I am dyslexic! Highschool also got in the way.

  • @PKAnane
    @PKAnane Před rokem

    You are a fantastic teacher!

  • @luWAsu
    @luWAsu Před rokem +1

    Love your videos, mate!

    • @luWAsu
      @luWAsu Před rokem

      Can one use a bash scripta to target gpioˋs on the rasberry pi?

  • @0xDomain
    @0xDomain Před rokem +1

    amazing stuff!! I have been looking for something similar to this on docker compose. Thanks!

  • @muhammadtaha2578
    @muhammadtaha2578 Před rokem +1

    for me you are my respectfull teacher sir

  • @tonygriffin944
    @tonygriffin944 Před 9 měsíci

    Excellent video mate 👍🏻

  • @jismathew3573
    @jismathew3573 Před rokem +2

    Amazing content 👍

  • @brainscott
    @brainscott Před rokem

    Your CZcams Thumbnails are some of the best

  • @TheBoyNamedR
    @TheBoyNamedR Před rokem

    For me, Docker compose was indistinguishable from magic. Thanks for this stone Chuck, I'll be adding it to my gauntlet.

  • @AatefTasneemkhan
    @AatefTasneemkhan Před rokem

    you never disappoint, always unique, always refreshing.... like coffee

  • @SALMUZ
    @SALMUZ Před měsícem

    Thanks ...... your video helped me a lot ... you are a good teacher .

  • @ivanmartinsk
    @ivanmartinsk Před rokem

    amazing!! thank you very much, you helped me a lot. Everything cristal clear.

  • @VincentAndre_HK
    @VincentAndre_HK Před rokem

    Hi Chuck, your energy is enough, no need for background music!!

  • @ivansimeonov9621
    @ivansimeonov9621 Před rokem

    Amazing way to present your content, fun & engaging, keep it up 🔝🔝🔝

  • @ronaldhofman1726
    @ronaldhofman1726 Před rokem +1

    The defintion of YAML=yet another markup language, little bit in the same line as YAST = Yet anather setup tool , it;s a Linux naming convention, love thst !

  • @QuinnFavo
    @QuinnFavo Před rokem

    Great vid! Thanks for making it

  • @parlor3115
    @parlor3115 Před rokem +4

    Lmao, I watched this just a day before I got into a Docker interview. I aced it!

  • @axMf3qTI
    @axMf3qTI Před 7 dny

    This the first time ever I've a person excited for YAML

  • @_stevied_
    @_stevied_ Před měsícem

    Chuck is a cool dude that teaches cool things! Awesome sauce!

  • @dano7448
    @dano7448 Před rokem

    YES! I really REALLY want... No I NEED to learn Docker better. Thanks Chuck!! Keep em comming!

  • @KD9ZZP
    @KD9ZZP Před rokem +1

    i get so happy when stuff works with WSL. ive never liked using linux as my main os so being able to do stuff with wsl is amazing

  • @tankxie7915
    @tankxie7915 Před 10 měsíci

    Very useful tutorial, thanks!

  • @akashkallumkal
    @akashkallumkal Před rokem +4

    This video is great, Can you make a video showing how to make a docker file to execute a bash script?

  • @ryanstrom8866
    @ryanstrom8866 Před rokem +2

    No idea how you do it but REGULARLY I will think to myself “hey I want to learn XYZ thing”. BOOM, the next day you come out with a video about XYZ thing. It’s beautiful😂

  • @LuisRamirez-gc5ds
    @LuisRamirez-gc5ds Před rokem

    Máster, thanks for spreading your knowledge all around.
    Wanted to make a request of Kafka apache to learn It right now!!
    Thanks to all !!

  • @hasanmahmud2016
    @hasanmahmud2016 Před rokem

    thanks for the help it help my every thing i need to install

  • @jesseneon1896
    @jesseneon1896 Před rokem

    Thank you so much for this awesome video.

  • @DK_83
    @DK_83 Před rokem +1

    Amazing video thanks

  • @hajjswaray4356
    @hajjswaray4356 Před rokem

    Thanks bro, much appreciated.