Exploring Docker [2] - Docker Compose With Node & MongoDB

  Рет қаралды 229,824

Traversy Media

Traversy Media

5 жыл бұрын

In this video we will take a simple Node/Express/Mongo app and dockerize it by adding a Dockerfile and using docker-compose to bundle services together. We will also run our containers on a Digital Ocean droplet.
Sponsor:
DevMountain Bootcamp - goo.gl/6q0dEa
Code For This Project:
github.com/bradtraversy/docke...
$10 off Digital Ocean
m.do.co/c/5424d440c63a
Docker Help Gist:
gist.github.com/bradtraversy/...
💖 Become a Patron: Show support & get perks!
/ traversymedia
Website & Udemy Courses
www.traversymedia.com
Follow Traversy Media:
/ traversymedia
/ traversymedia
/ traversymedia

Пікірлер: 306
@TraversyMedia
@TraversyMedia 5 жыл бұрын
If you want your data to persist in prod, add something like this to your mongo service... volumes: - ./data/db:/data/db .There are many resources online so when you create these files, be sure to check some other examples. This is a very basic setup
@KylanHurt
@KylanHurt 5 жыл бұрын
Beautiful. You probably just saved me at least a few hours of work. The whole point of a DB is persistence so that line of code helps a ton! Great video.
@bennet2444
@bennet2444 5 жыл бұрын
What about the Security of the Mongo Container? Anyway to manage it with docker as well?
@andressoop
@andressoop 5 жыл бұрын
Just to be clear on this. If I run "docker-compose down", the database will be cleared if it has no external volume right?
@sohammondal578
@sohammondal578 4 жыл бұрын
@@andressoop Yes exactly.
@wisdommatthew6775
@wisdommatthew6775 3 жыл бұрын
@@andressoop Yeah
@DodaGarcia
@DodaGarcia 3 жыл бұрын
I’m glad you didn’t edit out your fumbling with the SSH keys and passwords, it was the most relatable part of the video 😂😭
@ivandrofly
@ivandrofly 5 жыл бұрын
your tutorials are always perfect. Audio: 10/10 Video: 10/10 Information: 10/10
@Mathias-cq3zo
@Mathias-cq3zo 3 жыл бұрын
plus we got a quick ssh and GitHub Key tutorial hahahha ** insert "I came looking for copper and I found gold" meme **
@DodaGarcia
@DodaGarcia 3 жыл бұрын
Password frustration comedy: 10/10
@MrHumanwarrior
@MrHumanwarrior 4 жыл бұрын
Dude, I watched the part one of this and it's awesome. You definitely got me hyped about this DevOps thing... a great tutorial and great teacher. Bravo!
@NazeerHolmes
@NazeerHolmes 5 жыл бұрын
Great tutorial. I appreciate the "hiccups", more realistic then many tuts out there. It give a sense of how things can be. Thanks!
@thriftynick27
@thriftynick27 5 жыл бұрын
Nice and simple, straightforward example. Exactly what I was looking for. Thanks!
@thecondor5488
@thecondor5488 5 жыл бұрын
That was perfect. Made understanding how Docker makes it so easy to set up and run in several environments very easy to understand. Thanks again sir. As always clear and concise and to the point. Even the real world issue with SSH key was easy to understand and didn't take away from the purpose at all. Appreciate you!
@gaius_marius
@gaius_marius 5 жыл бұрын
Excellent tutorial. I've been a developer for 20 years but I'm a complete beginner with Docker. I've been watching some of your other videos and you have a treasure trove of info on many topics. Glad I found your channel!
@nickfmatthews09
@nickfmatthews09 3 жыл бұрын
Genuinely love this walkthrough, but my favorite moments are: whispering "shit" and the 4 attempts to login.
@GG-uz8us
@GG-uz8us 3 жыл бұрын
Yeah, it's the real situation people are experiencing.
@christopherparrish1293
@christopherparrish1293 5 жыл бұрын
I'm an infrastructure guy trying to dip his toe in to the microservices realm and part 1 & 2 of these videos lays it all out there in a way that makes sense. Good work, I'll be checking out some of your other videos as well!!!
@robbiedelrosario8638
@robbiedelrosario8638 5 жыл бұрын
This is really great! Hoping for a series on Kubernetes :D
@EduardKaresli
@EduardKaresli 5 жыл бұрын
These two videos about Docker are gold... Thanks a lot!!
@Leeboi305
@Leeboi305 4 жыл бұрын
This was awesome man. Followed it step by step, learned how to launch in D.O, learned how to generate ssh keys and even switch between ssh-agents because i didn't want to overwrite my previous key. Thanks for all you do!
@gtrockefellar
@gtrockefellar 4 жыл бұрын
Great video! I appreciate how genuine you come off as especially with the random phone "dings" and the random "Siht" bombs. It makes your videos easier to follow cause its' not a totally monotone script.
@diallomamadou258
@diallomamadou258 5 жыл бұрын
Always amazing content Brad, I'm so glad to be one of your subscribers. Thank you very much
@carolinavalverde9034
@carolinavalverde9034 5 жыл бұрын
Please keep doing tutorial please. It’s rare to see tutorials of such high quality! Thank you!
@rusa_
@rusa_ Жыл бұрын
Brilliant video. Just getting started with all of this. I found it easy to follow along. You kept the jargon simple. I appreciate it
@johnragica1723
@johnragica1723 4 жыл бұрын
Excellent tutorial. Thank you for sharing this. It really helps a lot because your instructions are very clear and practical. More power to you.
@subhajitdaripa3458
@subhajitdaripa3458 4 жыл бұрын
love you bro just love the way you teach things in simple yet effective manner have been following you for some time and I am already your fan
@josphatoluoch5205
@josphatoluoch5205 3 жыл бұрын
I can't believe all this material is FREE. Thank a lot for the material.
@catherinedesrochers
@catherinedesrochers 3 жыл бұрын
The SSH Key hiccup was a good thing as it refreshed my memory about it!
@shauntonesify
@shauntonesify 3 жыл бұрын
Again, - Brad to the Rescue. Just started working with Docker-Compose and besides it not doing what I wanted- it kept installing packages with yarn :X glad this video was around to save my day... again.
@xadasol8692
@xadasol8692 5 жыл бұрын
It definitely deserves a massive like Thank you Brad
@darwinsanjayasendri8622
@darwinsanjayasendri8622 5 жыл бұрын
Thanks for the tutorial. It was simple and concise explanation.
@technics6215
@technics6215 4 жыл бұрын
Thanks for another nice 2in1 tutorial. I didn't realized that it is possible to work with ssh so efficient in shell :)
@derricknjoroge2494
@derricknjoroge2494 4 жыл бұрын
Wow, this is amazing! Thank You Brad
@databridgeconsultants9163
@databridgeconsultants9163 4 жыл бұрын
Absolutely Awesome Content . Thank you very much . As I am a new beginner on Docker and Container , I feel very confident now .
@Quartzaoe
@Quartzaoe 5 жыл бұрын
Docker is godsent, makes everything so much simpler
@codenx2
@codenx2 4 жыл бұрын
That ssh part helped me :) too. Thanks.
@coltonwilliams1565
@coltonwilliams1565 4 жыл бұрын
This was incredibly helpful. Thank you Brad
@HearterSG
@HearterSG 4 жыл бұрын
docker is insane! and this tutorial also was insane. thanks brad!
@ademhodzic6712
@ademhodzic6712 5 жыл бұрын
Really nice tutorial! Thanks a lot. Keep up good work Brad...
@gumpie
@gumpie 5 жыл бұрын
Brad ... shout out from South Africa. This was awesome... Such good content. Docker seems a bit more simple for me now.
@HenkBadenhorst_MM
@HenkBadenhorst_MM 4 жыл бұрын
Thanks, fantastic intro to Docker!
@junehanabi1756
@junehanabi1756 4 жыл бұрын
I will vouch for Digital Ocean. I've used many providers over the years Go Daddy, Name cheap, Media Temple, etc... After I went to Digital Ocean I will never go back. I've been with them for many years and have watched them go through so many large changes but I've loved everyone of them. They offer so many more features now than they did when I first signed on, it's amazing. The pricing tiers are great, the pricing model is great, and in minutes I can add a free external firewall, a $5 CDN, inexpensive daily live full-image backups and manual full-image snapshots, domain hosting, Lets Encrypt auto-generation and a raw server just handed to you with no limits or restrictions. Who wouldn't want to use them lol.
@miluna94
@miluna94 5 жыл бұрын
Awesome tutorial as usual. Thanks Brad!
@timothyhartley2791
@timothyhartley2791 5 жыл бұрын
Thanks for talking through the SSH issue.
@rohitagrawal769
@rohitagrawal769 4 ай бұрын
Thank you so much man!!. 02:25 This really helped me. After searching for 2 days i found this video and just small change and my codes are running now. Replaced localhost with the container service name in my url. Thanks once again!!
@meirkhanyesseyev7275
@meirkhanyesseyev7275 5 жыл бұрын
Thank you for great Docker tutorials. Could you make some tutorials about Kubernetes, which basically uses Docker containers for servers.
@derwt7
@derwt7 5 жыл бұрын
omg thanks for taking the time to do this
@wwhill8033
@wwhill8033 5 жыл бұрын
Another amazing Video, Thanks Brad and keep up the fantastic work!!
@billpliske
@billpliske 4 жыл бұрын
Very helpful, Brad. Great job!
@Paul_Green
@Paul_Green 4 жыл бұрын
Great tutorial, thank you. It's worth pointing out you should always use a passphrase to protect your ssh private keys unless you really don't care about the hosts you put the public key on, which is probably the case for this demo, but viewers might not realise that.
@miriamramstudio3982
@miriamramstudio3982 3 жыл бұрын
Just what I needed. Very well explained. very good video. Thanks !!
@kelthuzal
@kelthuzal 5 жыл бұрын
Thanks fir great vdo, really waiting for Kubernetes series
@adilsaju
@adilsaju 4 жыл бұрын
Great video for beginners. Please do more on docker!
@prakad97
@prakad97 4 жыл бұрын
Re-watching it in 2x speed..it was the same reactions that i give when i forget my password for github..hilarious..!! Great video brad..!!
@rroblesgo
@rroblesgo 5 жыл бұрын
Excelent as always Mr. Brad !!
@nilsdomin3120
@nilsdomin3120 5 жыл бұрын
Great, thanks! Suggestion: You could make a tutorial with the MERN stack, e. g. with your Devconnector app.
@noahwilliams8918
@noahwilliams8918 4 жыл бұрын
Super informative tutorial, as always! I was already was familiar with Docker when I started it, but the recap and detailed explanation of what you are doing and how everything works is always that extra +5% that gives one the confidence to deploy in production :) p.s. the best part of this tutorial was the "shit" in a Boston accent. As a New England ex-pat, that's a sound I've not heard in a long time! 😂👏
@beyondthehorizon94
@beyondthehorizon94 5 жыл бұрын
You made it look very simple, thx.
@fvgoya
@fvgoya 5 жыл бұрын
Man, you don't need to apologize!!!!! Even with this "mistake" turn to a recap of ssh!!! Appreciate it!!!!
@rionaldy
@rionaldy 5 жыл бұрын
Thanks for the Docker tutorial, man. You saved us a lot of time with the Digital Ocean and Github troubleshootings :D Btw, do you think you can do a tutorial series on the ELK stack? Not forcing you, but it'll be great and I would really appreciate that. PS. : love your videos btw :)
@sarba85528
@sarba85528 Жыл бұрын
Thank you, sir! I learned a lot following your codes, comment as well as all the explanation.
@jasdfpasdfakdsjhfa
@jasdfpasdfakdsjhfa 4 жыл бұрын
Hey Brad, thanks for the videos, you're awesome! Quick tip from one mac user to another you may not be aware of. On mac you can pipe a command to pbcopy in order to copy it to your system clipboard. So you can do "cat ~/.ssh/id_rsa_do.pub | pbcopy".
@ashutoshnayak609
@ashutoshnayak609 5 жыл бұрын
Wait 2 videos at the same time , I am on cloud 9 , thanks Brad.
@chammidhan
@chammidhan 4 жыл бұрын
Awesome tutorial. Simple and to the point!
@vincentschauer
@vincentschauer 3 жыл бұрын
Thanks a bunch! Great tutorial, and nice that you left the ssh key part etc. in the final edit, makes me feel normal :D
@daniel-deverell
@daniel-deverell 5 жыл бұрын
A Headless Wordpress video would be my next choice. Thanks for all you do.
@anandanhumanoid
@anandanhumanoid 4 жыл бұрын
Great learning,Thanks for sharing Brad.
@ThanhQuoc2010
@ThanhQuoc2010 3 жыл бұрын
Really helpful tutorial! Thanks man!
@NafeoJoy
@NafeoJoy 3 жыл бұрын
You are amazing Brad!
@ivan-the-l
@ivan-the-l 3 жыл бұрын
Thx a lot for your tutorial! It helped me a lot with my college assignment :)
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 5 жыл бұрын
Thank you for this awesome video and series
@NoNameChannelSigma
@NoNameChannelSigma Жыл бұрын
perfect lesson, thank you for your efforts
@usmanmudasser5359
@usmanmudasser5359 5 жыл бұрын
Another great video. Man you are the best. Please add more docker networks and security related videos
@comedycutout6958
@comedycutout6958 3 жыл бұрын
thank you sir for explaining the docker.
@ripfire4
@ripfire4 4 жыл бұрын
Awesome video! Very casual, down to earth which I can totally connect because I share the same minor frustrations and occasional swearing. Way better than listening to someone reading a script or straight from wikipedia.
@marcellciszekdruzynski
@marcellciszekdruzynski 5 жыл бұрын
Thanks Brad once again!
@matiasrondan
@matiasrondan 3 жыл бұрын
Very helpful, thank you! Congratulations for the great content!
@zt.5677
@zt.5677 3 жыл бұрын
This is actually very good! Thanks!
@gigabyte2053
@gigabyte2053 5 жыл бұрын
you are amazing dude i have learned so much from you be happy for what you do for world bro
@nicholaspappas9351
@nicholaspappas9351 5 жыл бұрын
Awesome video. I'd love to see some more docker videos!
@javilionaire
@javilionaire 3 жыл бұрын
Would love to see some more docker stuff. A tutorial with react/express/mongo + docker would be awesome. Maybe even some Kubernetes at some point!
@abbie3156
@abbie3156 4 жыл бұрын
Is there any technology you don't know! Excellent tutorials. keep up the good work.
@muthuhari8875
@muthuhari8875 5 жыл бұрын
Hi Brad, please add some videos about debugging on vscode and if possible some testing toturials
@kiesemedia433
@kiesemedia433 5 жыл бұрын
i really liked seeing this video footage. keep going 😊
@Szarlus
@Szarlus 5 жыл бұрын
Hi! I want to say that your videos are great, I love them. One thing though. Isn't a "link" option more of a legacy, shouldn't we be using "depends_on" in v3? Thank you for your hard work, many of us appreciate it!
@rtorcato
@rtorcato 5 жыл бұрын
If you are new to docker you should run the 'docker system prune' command. If not you may eventually have a bunch of images taking up gigs of space on your drive
@rahulbasetti700
@rahulbasetti700 5 жыл бұрын
U r great Leo doing motivational videos I love ur videos
@onurtravels
@onurtravels 4 жыл бұрын
Doing the ssh configuration is also showing the process, nice 🙂
@arshadmunir9015
@arshadmunir9015 4 жыл бұрын
Excellent tutorial for beginners.
@restuwahyusaputra7764
@restuwahyusaputra7764 3 жыл бұрын
Thanks Brad this is awesome free course
@dzengiztafa7964
@dzengiztafa7964 5 жыл бұрын
Thank you Traversy Media. I was looking for a way to publish our MERN project at work on our server. This tutorial pointed me in the right direction to do that. I reckon it is only a matter of linking the NodeJS restAPI to the mongodb & the react frontend through the "links" in your docker compose file?
@msalameh01
@msalameh01 2 жыл бұрын
Many thanks, great explanation
@nut6977
@nut6977 2 жыл бұрын
Thanks for your perfect tutorials. :)
@erickloningo2252
@erickloningo2252 4 жыл бұрын
you are a life saver. thanks alot man. really helped me alot
@SerhiiKozachenko
@SerhiiKozachenko 5 жыл бұрын
Hi Brad! Many thanks for this tutorial! I have a question - while running 'docker-compose up' I am getting in the terminal 'docker-node-mongo exited with code 0' Is there any way to fix this? Thanks!
@SuperToughnut
@SuperToughnut 5 жыл бұрын
Very helpful! Thank you!
@ParasBansal10
@ParasBansal10 5 жыл бұрын
Thanks Brad!
@thecondor5488
@thecondor5488 5 жыл бұрын
So glad you messed up with the SSH it definitely helped!! :D
@BudaSuyasa
@BudaSuyasa 5 жыл бұрын
amazing as always
@DimonEx
@DimonEx 4 жыл бұрын
Thanks dude - that was helpful!
@andrewshwets1316
@andrewshwets1316 5 жыл бұрын
Thanks!!! Keep it up Man!
@AbhishekNigam
@AbhishekNigam 5 жыл бұрын
It's a great tutorial!!. Thank you :)
@sunnynehar
@sunnynehar 5 жыл бұрын
ThanQ for ur videos brad. All Ur videos are amazing, Could you also please make a video on lamp stack with docker. looking forward to it. ,😉
@asharma741
@asharma741 2 жыл бұрын
Hi Brad, this whole series is really awesome. I have one question about mongo container. Do we need container for mongo if we are using mongo atlas service ?
@gustavoalvarez2734
@gustavoalvarez2734 4 жыл бұрын
Great video, you also refreshed me some ssh commands :)
@GfastGao
@GfastGao 4 жыл бұрын
Hi Brads, Awesome awesome tutorial for jump into Docker! thank you for your effort, really appreciate you contribution to the success of my career!
@GfastGao
@GfastGao 4 жыл бұрын
I specifically like the parts you speak out some F* world. Because I think it's the reallity when I coding and also very fun.
@matthewhanyu6158
@matthewhanyu6158 4 жыл бұрын
Really great video, and it is very kind of you! Amazing! Thank you! Afterwards, you can create AWS hosting with dockerizing app instead of Deagital Ocean? Really it would be to expect the best video and I think there should be good guys to love you with that! Also hopefully can you make the video AWS + CI/CD + docker? It would be also a great video which attracts more fans!
Exploring Docker [1] - Getting Started
34:38
Traversy Media
Рет қаралды 407 М.
SSH Crash Course | With Some DevOps
55:02
Traversy Media
Рет қаралды 543 М.
Не пей газировку у мамы в машине
00:28
Даша Боровик
Рет қаралды 8 МЛН
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 967 М.
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 126 М.
ExpressJS and MongoDB with Docker Only
40:12
The Full Stack Junkie
Рет қаралды 9 М.
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 64 М.
the new PS4 jailbreak is sort of hilarious
12:21
Low Level Learning
Рет қаралды 39 М.
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 243 М.
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 466 М.
Learning Docker // Getting started!
35:56
Christian Lempa
Рет қаралды 98 М.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,4 МЛН
Deploy Websites In Seconds With Netlify
22:06
Traversy Media
Рет қаралды 224 М.
Stop Worrying About AI!
6:40
Traversy Media
Рет қаралды 46 М.
Edit My Photo change back coloured with Bast Tech
0:45
BST TECH
Рет қаралды 333 М.
Apple Event - May 7
38:32
Apple
Рет қаралды 6 МЛН
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 97 М.
M4 iPad Pro Impressions: Well This is Awkward
12:51
Marques Brownlee
Рет қаралды 6 МЛН