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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มิ.ย. 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
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @NetworkChuck
    @NetworkChuck  ปีที่แล้ว +40

    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 ปีที่แล้ว +3

      I live in linux

    • @aj0413_
      @aj0413_ ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว

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

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

      @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 ปีที่แล้ว +240

    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 ปีที่แล้ว +4

      How is your job so far?

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

      Ayooo!! Congrats! :D

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

      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 3 หลายเดือนก่อน

      Epic. Congratulations! Chucks videos are amazing. 😊

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

      Congratulations 🎉👏👏
      With Love from India 🇮🇳

  • @Psiclone
    @Psiclone 24 วันที่ผ่านมา +7

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

    • @Aexoana_
      @Aexoana_ 20 วันที่ผ่านมา +2

      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.

  • @dimaj1
    @dimaj1 ปีที่แล้ว +71

    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 ปีที่แล้ว

      👆👆👆🇺🇸🇺🇸.

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

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

    • @magicmulder
      @magicmulder 9 หลายเดือนก่อน +6

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

    • @llchristubell
      @llchristubell 6 หลายเดือนก่อน

      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.

  • @airforcedude08
    @airforcedude08 ปีที่แล้ว +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 TH-cam by far

  • @seankingsland
    @seankingsland ปีที่แล้ว +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.

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

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

  • @morningreis5018
    @morningreis5018 ปีที่แล้ว +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!

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

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

  • @coolmcdude
    @coolmcdude ปีที่แล้ว +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.

  • @theK4b6
    @theK4b6 ปีที่แล้ว +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.

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

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

  • @Mayur7Garg
    @Mayur7Garg ปีที่แล้ว +19

    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 7 หลายเดือนก่อน +2

      Can you share that please.

    • @max-hill-4
      @max-hill-4 3 หลายเดือนก่อน +1

      would love to read!

    • @98SE
      @98SE หลายเดือนก่อน

      @@max-hill-4 Same here!

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

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

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

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

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

    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

  • @mahmoudshihab
    @mahmoudshihab ปีที่แล้ว +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.

  • @erickmiranda2070
    @erickmiranda2070 4 หลายเดือนก่อน

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

  • @lukaszl9542
    @lukaszl9542 5 หลายเดือนก่อน

    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.

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

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

  • @binodb.k.3593
    @binodb.k.3593 ปีที่แล้ว +1

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

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

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

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

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

  • @LivinDadLife
    @LivinDadLife ปีที่แล้ว +5

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

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

      Hopefully not with sudo.

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

      What about hacking an Instagram account

  • @drumguy1384
    @drumguy1384 ปีที่แล้ว +6

    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.

  • @samibouakeldev
    @samibouakeldev ปีที่แล้ว +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 🙏♥

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

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

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

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

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

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

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

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

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

    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 ปีที่แล้ว

      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?

  • @Art-kz6zf
    @Art-kz6zf ปีที่แล้ว

    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 😄

  • @mertcikla
    @mertcikla 11 หลายเดือนก่อน

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

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

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

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

    You are the best tutor on TH-cam for me so far!!

  • @meowcula
    @meowcula ปีที่แล้ว +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.

  • @ronaldhofman1726
    @ronaldhofman1726 ปีที่แล้ว +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 !

  • @synthmania7275
    @synthmania7275 4 หลายเดือนก่อน

    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!

  • @SpragginsDesigns
    @SpragginsDesigns ปีที่แล้ว +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 ปีที่แล้ว

      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 ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว

      @@muhammedatasoy7711 Tim Corey pretty good too and detailed.

  • @ArnabDas
    @ArnabDas 7 หลายเดือนก่อน

    Just wanted to say thanks for explaining this so clearly.

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

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

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

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

  • @JeriReino
    @JeriReino วันที่ผ่านมา

    I love your enthusiasm brother .

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

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

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

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

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

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

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

    You really got communication skills! Great explanation, thank u

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

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

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

    I love your videos Chuck!

  • @riverwolf695
    @riverwolf695 ปีที่แล้ว +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.

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

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

  • @Reckless917
    @Reckless917 2 หลายเดือนก่อน

    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.

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

    what i like the most with networkchuck is even if you know the technologie he's going to talk about he's still got new cool stuff to teach you

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

    1- I love Network Chuck
    2 - Please cc arabic

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

    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)

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

    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.

  • @SALMUZ
    @SALMUZ 10 วันที่ผ่านมา

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

  • @JoeNgera
    @JoeNgera 3 วันที่ผ่านมา

    Love your work man.

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

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

  • @DragonXVI
    @DragonXVI 7 วันที่ผ่านมา

    Always fun and informative!

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

    Nice video. You're teaching skill so good.

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

    Thanks man, really appreciate your effort.

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

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

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

    for me you are my respectfull teacher sir

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

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

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

    Super video Chuck Your videos are awesome And informative Chuck

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

    You are a fantastic teacher!

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

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

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

    Great video as always

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

    Awesome job Chuck thanks

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

    Wow! Very good and instructive video.

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

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

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

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

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

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

  • @tonygriffin944
    @tonygriffin944 8 หลายเดือนก่อน

    Excellent video mate 👍🏻

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

    Thanks bro, much appreciated.

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

    Still working as of today! Thank you!

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

    Love your videos, mate!

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

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

  • @tankxie7915
    @tankxie7915 9 หลายเดือนก่อน

    Very useful tutorial, thanks!

  • @youjean83
    @youjean83 ปีที่แล้ว +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.

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

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

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

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

  • @magicmulder
    @magicmulder 9 หลายเดือนก่อน

    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).

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

    my brain in love with networkchuck teaching
    the way he send information is like TCP protocol

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

    Hey man, It works great and without any problems.

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

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

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

    Your TH-cam Thumbnails are some of the best

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

    Great vid! Thanks for making it

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

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

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

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

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

    Guys like you should never get sick..should never feel sad... should never DIE ❤️💫

  • @ryanstrom8866
    @ryanstrom8866 ปีที่แล้ว +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😂

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

    It worked! Tank you sir.

  • @KD9ZZP
    @KD9ZZP ปีที่แล้ว +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

  • @norvusordoseclorum
    @norvusordoseclorum 20 วันที่ผ่านมา +1

    It's amazing that Chuck has all the hair he has considering all the coffee he drinks

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

    Bro can you please help on how to become a job ready ethical hacker? Do you need a degree or not? How much time do you need, what kinda languages you gotta learn.. Please make a video on this

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

    This is so awesome!!

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

    Thank you so much for this awesome video.

  • @ZombieTechPad
    @ZombieTechPad 6 หลายเดือนก่อน

    My favourite video youtube right now.

  • @LuisRamirez-gc5ds
    @LuisRamirez-gc5ds ปีที่แล้ว

    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 !!