Docker Compose will BLOW your MIND!! (a tutorial)
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
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
I live in linux
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
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.
Lucky I've watched almost all your videos chuck 😁 You are a legend!
@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
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!
How is your job so far?
Ayooo!! Congrats! :D
Hey, im at the same place as you were before. How hard it was to find a job? Im pretty nervous
Epic. Congratulations! Chucks videos are amazing. 😊
Congratulations 🎉👏👏
With Love from India 🇮🇳
As a newbie desperately trying to find a simple tutorial on how to use Docker I am instantly overwhelmed by this video.
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.
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 !
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.
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!
👆👆👆🇺🇸🇺🇸.
Using tabs makes it easier for humans to read. The machine doesn’t care.
@@Ozymandias1The tabs are actually important in YAML and not just for human readability.
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.
"restart: unless-stopped" is honestly the better option from my experience.
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
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.
👆👆👆🇺🇸🇺🇸..
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!
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.
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
Heck yeah, I was waiting for docker compose since last docker video. Docker is freaking awesome
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.
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.
Can you share that please.
would love to read!
@@max-hill-4 Same here!
Tbh the best, super beginner-friendly tutorials out there man! More power to you!! 😇
I truly love your content and the way your explanation is awesome which really helps to understand things so fast.
Chuck, you are the very best teacher regardless of subject, I ever saw. Congratulations!
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.
Lucky I've watched almost all your videos chuck 😁 You are a legend!
bro! awesome videos like always! such a great vibe yo! Plus, I love docker more than ever
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.
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 😄
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.
Thanks Chuck, for this video
I was searching for docker videos
I must say this was the best week. We got 4 videos from you and learned so much.
👆👆👆🇺🇸🇺🇸..
Learned so much from these videos and have spun up all my personal servers with Docker! Thanks Network Chuck for your knowledge share!
Hopefully not with sudo.
What about hacking an Instagram account
The docker-compose video i have ever needed. Thank you so much!
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.
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?
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 🙏♥
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.
You present any content with all your energy and with care. thanks
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!
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
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.
@@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)
@@muhammedatasoy7711 Tim Corey pretty good too and detailed.
This video is so smooth that it hurts. Well done!
Good intro man, thanks for the insight. Appreciate you taking the time to learn it and make a video 🤙🏼
Damn chuck, the algo always shows me your videos about just the right video at just the right time
Man! you are the kind of teacher every parent dream to teach their kids! legend!
Thank you for this video, I've just fallen down the Docker rabbit hole and this has just answered so many questions I had.
I love your videos they are the best. Keep it up!
just subbed because of the progress bar during the sponsor segment. thank you for respecting my time ❤
As always, YOUR video is the one that helps me understand the WHY and HOW of whatever IT issue I have. 🎉☕️
Thank you, now I can make my parents proud of me with a single command
Docker compose is a true marvel, I even know more about it than normal docker
You are the best tutor on CZcams for me so far!!
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.
This video gave me everything I needed today. Thank you, you have a new subscriber.
I love your videos Chuck!
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.
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!
Great video as always
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)
Super video Chuck Your videos are awesome And informative Chuck
you're funny in explaining boring techy stuff. the content is clear and easy to grasp. good 👍
Just wanted to say thanks for explaining this so clearly.
Wow! Very good and instructive video.
GREAT video. I learned a lot, I think 😃. Time to mess around a bit and see what I can do with this. 🤞🤞🤞🤞🤞🤞!!
Great video as always! I'd love to see docker swarm on a cluster in action and hear your opinion if compared to K8S.
Нарешті хтось просто і зрозуміло розповів про те як працює Докер )) Дуже дякую Чак, ти супер!
Finally, someone simply and clearly explained how Docker works )) Thank you very much Chuck, you are great!
i learn alot with the help of yous videos (sorry for my weak english)
Awesome job Chuck thanks
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.
Thanks man, really appreciate your effort.
You really got communication skills! Great explanation, thank u
you made very good videos, thanks. And your Viking style is very unique.
So much enthusiasm. You are a great teacher!
Good shit!
I love your enthusiasm brother .
I love your energy! Far the best video today 🎉
Nice video. You're teaching skill so good.
Always fun and informative!
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).
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.
This is so awesome!!
Love your work man.
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.
You are a fantastic teacher!
Love your videos, mate!
Can one use a bash scripta to target gpioˋs on the rasberry pi?
amazing stuff!! I have been looking for something similar to this on docker compose. Thanks!
👆👆👆🇺🇸🇺🇸.
podman i think
for me you are my respectfull teacher sir
Excellent video mate 👍🏻
Amazing content 👍
Your CZcams Thumbnails are some of the best
For me, Docker compose was indistinguishable from magic. Thanks for this stone Chuck, I'll be adding it to my gauntlet.
you never disappoint, always unique, always refreshing.... like coffee
Thanks ...... your video helped me a lot ... you are a good teacher .
amazing!! thank you very much, you helped me a lot. Everything cristal clear.
Hi Chuck, your energy is enough, no need for background music!!
Amazing way to present your content, fun & engaging, keep it up 🔝🔝🔝
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 !
Great vid! Thanks for making it
Lmao, I watched this just a day before I got into a Docker interview. I aced it!
This the first time ever I've a person excited for YAML
Chuck is a cool dude that teaches cool things! Awesome sauce!
YES! I really REALLY want... No I NEED to learn Docker better. Thanks Chuck!! Keep em comming!
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
👆👆👆🇺🇸🇺🇸..
Very useful tutorial, thanks!
This video is great, Can you make a video showing how to make a docker file to execute a bash script?
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😂
👆👆👆🇺🇸🇺🇸..
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 !!
thanks for the help it help my every thing i need to install
Thank you so much for this awesome video.
Amazing video thanks
Thanks bro, much appreciated.