Docker + Node.js/express tutorial: Building dev/prod workflow with docker and Node.js

  Рет қаралды 35,246

Sanjeev Thiyagarajan

Sanjeev Thiyagarajan

Күн бұрын

Docker Docker Docker Docker and even more Docker. This is the first of many docker videos I hope to pump out. In this video, i'm going to walk you through how to setup a development workflow for node.js/express apps with docker. I tried searching online for a good video, but there wasn't one that took everything step by step, so I decided to make one.
We'll be covering a lot of good stuff like, building images using dockerfiles, learning about volumes and bind mounts, setting environment variables, automating with docker-compose, and splitting up our development and production environments
timestamps:
00:00 Intro & demo express app
04:04 Custom Images with Dockerfile
10:20 Docker image layers & caching
20:12 Docker networking opening ports
26:22 Dockerignore file
31:32 Syncing source code with bind mounts
45:16 Anonymous Volumes hack
51:44 Read-Only Bind Mounts
54:44 Environment variables
59:02 loading environment variables from file
01:01:17 Deleting stale volumes
01:03:47 Docker Compose
01:21:22 Development vs Production configs
If you like this video please subscribe to this channel. Don't let me go hungry!
/ @sanjeevthiyagarajan / sanjeev_tea / sanjeev_tea
Support this garbage Channel
Patreon: / sanjeevthiyagarajan
/ sanjeev_tea
/ sanjeev_tea
/ sanjeevkt720

Пікірлер: 81
@timderks5960
@timderks5960 3 жыл бұрын
This is one of those videos you skip when you're a beginner, because it seems so daunting, but in the end it's that video that makes all the other random bits of info you found click into place, finally making it all understandable.
@sandeepkosta5750
@sandeepkosta5750 2 жыл бұрын
You said what i just felt. 🤣🤣
@syncpoint
@syncpoint Жыл бұрын
I am not going to skip 😉
@bilza2023
@bilza2023 4 ай бұрын
thanks for the heads-up
@jallpass
@jallpass 3 күн бұрын
yeah this is honestly the best video I could find on youtube
@joekane9235
@joekane9235 Ай бұрын
Absolutely superb, much better than some other paid resources I used. This is perfect for beginners who have a concept of what an image or container is and are looking to dockerise some projects or create from scratch. The best explanation of Dockerfile and compose that I have seen, with all the supplemental information you need to develop you understanding as opposed to regurgitating steps in a process.
@edwardoakley8659
@edwardoakley8659 2 жыл бұрын
This is, and I can't express highly enough, exactly what I was looking for! Perfect tutorial, clean, clear, all the information you need. Thanks dude
@spaceghost166
@spaceghost166 3 жыл бұрын
Thanks for the video! Super clear and well explained!
@RajeshRRajamani
@RajeshRRajamani Жыл бұрын
Absolute Gem . Every concept explained with a perfect example . Wish I had came across this earlier . Kudos
@user-ur2ro5mk4o
@user-ur2ro5mk4o 5 ай бұрын
I learnt a lot about docker in this 100 minute video. Recommended for anyone beginning with Docker.
@cemyurtbas7668
@cemyurtbas7668 3 жыл бұрын
Thank you so much, time well spent on watching and learning :) Big thanks for explaining all micro knowledge you have for new starters like me. Sending big hugs from Turkey. I lunched my app on aws / ubuntu machine with all manual work. Its time time do it with docker container. Hope you keep doing what you do. Thanks alot again.
@SiavashHabil
@SiavashHabil Жыл бұрын
This is really clean, clear and usful tutorial and contain lots of points you need to take care of them when dockerizeing node project. Really appreciate to watch this course. Thanks dude :)
@ahsaanali4512
@ahsaanali4512 Жыл бұрын
Best video on docker file and compose file configuration, really appreciable.
@tomaszstec5672
@tomaszstec5672 3 жыл бұрын
Really good job man!!! In oposition to other contents creators You really showed many important aspects . Truly appreciate, very useful and detailed. Thank You!!!
@farrukhatabekov595
@farrukhatabekov595 3 жыл бұрын
Nobody dares to dislike this video. As usual, Sanjeev. Great content !!
@CharlesSeelig
@CharlesSeelig 10 ай бұрын
Excellent! You cover a lot of ground with crisp, no cruft examples that build one upon the next. Among the best tuts I've ever seen. Thank you!
@web-dev-lab
@web-dev-lab 3 жыл бұрын
This is just awesome. Best practical video on docker
@ARESxWARLORD
@ARESxWARLORD Жыл бұрын
Hands down the best docker tutorial on the Internet
@bilkisuismail6096
@bilkisuismail6096 6 ай бұрын
Finally, someone who can explain docker to a novice. Thanks you just gained a subscriber
@ShreyaSharma-vg7eb
@ShreyaSharma-vg7eb Жыл бұрын
Awesome video, clearly explained everything!!!
@pranavverma37
@pranavverma37 9 ай бұрын
After checking many videos in youtube. No one explain som much of depth. Wonderfull videos Thanks
@morshedulmunna1
@morshedulmunna1 7 ай бұрын
Best video Ever for me after watching 20 videos and wast of 2 days time ... thank you
@PhilAlbu
@PhilAlbu 2 жыл бұрын
Great tutorial! Really appreciate the time you put into this! :)
@shashikantsharma3551
@shashikantsharma3551 3 жыл бұрын
Thanks a lot for making this video. Great explanation. I actually saw around 10+ videos on KZbin didn't understand Docker so clearly as you did in this video. 👍👍
@SanjeevThiyagarajan
@SanjeevThiyagarajan 3 жыл бұрын
Thanks man glad u liked the video. I actually made a longer version of the course where I go over deployment and a few other things. Check it out if u got time kzbin.info/www/bejne/oKDXoYmqe9yMeM0
@shashikantsharma3551
@shashikantsharma3551 3 жыл бұрын
@@SanjeevThiyagarajan Yea sure. Thanks for sharing
@nishantkumar6960
@nishantkumar6960 2 жыл бұрын
So much valuable content. You're GOD. What a great teaching style.
@edonan85
@edonan85 10 ай бұрын
Thanks a lot for the thoughtful explanation, you're an amazing teacher!
@CraigTyler
@CraigTyler Жыл бұрын
Excellent. Very thorough.
@nthonymiller
@nthonymiller Жыл бұрын
Thanks for this awesome video, just what I needed
@jallpass
@jallpass 4 күн бұрын
Great mini course, thank you
@rezwansaki
@rezwansaki Жыл бұрын
Very helpful tutorial. Thanks. :)
@r2c1
@r2c1 Жыл бұрын
Congrats! This is perfect! Thanks!
@successezeh2009
@successezeh2009 10 ай бұрын
Amazing tutorial👏👏👏👏
@user-ck9uj9kd3y
@user-ck9uj9kd3y 3 ай бұрын
Excellent course
@Noam-Bahar
@Noam-Bahar 4 ай бұрын
Awesome video 🎉
@khandoor7228
@khandoor7228 3 жыл бұрын
Fantastic stuff
@ahmadreza2189
@ahmadreza2189 2 жыл бұрын
great course .thanks
@Suraj-vn5tm
@Suraj-vn5tm 2 жыл бұрын
Your Genius, Thanks, man!, please do a video on CI/CD Pipeline with Github Actions
@damilaremichael9543
@damilaremichael9543 2 жыл бұрын
you saved my life
@danilchernysh8372
@danilchernysh8372 3 жыл бұрын
awesome, can't find such a good tutorial on russian
@LakshmikantDeshpande4u
@LakshmikantDeshpande4u Жыл бұрын
Excellent
@ericpadron959
@ericpadron959 Ай бұрын
Thanks!
@shaikhanuman8012
@shaikhanuman8012 10 ай бұрын
Thanks you for clear explanation, can provide a video on ci,cd and git hub integration with deployments, it would be more helpful to a lot of peoples thank you, sir.
@EnkhbayarMr
@EnkhbayarMr 8 ай бұрын
thank you.
@AbouPortanx
@AbouPortanx 2 жыл бұрын
wowow thank you so much
@tomaszstec5672
@tomaszstec5672 3 жыл бұрын
Github Actions pretty good idea!!!!
@The122PelZZzzz
@The122PelZZzzz 3 жыл бұрын
It would be interesting to hear from you about Redis, in particular its integration with JS. Thanks for your work
@SanjeevThiyagarajan
@SanjeevThiyagarajan 3 жыл бұрын
I'm already working on a full stack tutorial that will incorparate redis :)
@piyushmahapatra5402
@piyushmahapatra5402 3 жыл бұрын
@@SanjeevThiyagarajan Awesome bro! Your Tutorials and the Voice is so clear. Loving it! Will it be free or paid ? Thanks in advance!
@SanjeevThiyagarajan
@SanjeevThiyagarajan 3 жыл бұрын
it'll be free
@The122PelZZzzz
@The122PelZZzzz 3 жыл бұрын
@@SanjeevThiyagarajan And something with sequelize is not planned? :)
@SanjeevThiyagarajan
@SanjeevThiyagarajan 3 жыл бұрын
@@The122PelZZzzz not a huge fan of sequalize. I'll probably do a video knex.js
@santhoshmj7116
@santhoshmj7116 Жыл бұрын
in environment variables section why you enter the port 4000 while run the container but in Dockerfile you mention 3000?
@sematoghem
@sematoghem Жыл бұрын
it's answer beginners what thing doing. great....
@josebarraza118
@josebarraza118 3 жыл бұрын
please create a tutorial for dockerizing mongodb with this express app
@elektrixmk
@elektrixmk 3 жыл бұрын
Thanks for the great video! Curious - would it be possible to sidestep running the bash command (for the multi-environment support) in the Dockerfile and use Docker's multi-stage builds instead?
@SanjeevThiyagarajan
@SanjeevThiyagarajan 3 жыл бұрын
You 100% can do it with multi-stage builds. Multiple ways to accomplish things
@elektrixmk
@elektrixmk 3 жыл бұрын
@@SanjeevThiyagarajan yeah, no question about that! I was just wondering if you maybe have any examples / patterns of such an approach? Thanks!
@igadget777
@igadget777 2 жыл бұрын
Thanks for the video. I like the way you explain things. Only issue I'm having is that for some reason my .dockerignore file is not working and all the files are copied. Any ideas? Thanks.
@SanjeevThiyagarajan
@SanjeevThiyagarajan 2 жыл бұрын
Docker ignore is just for building images. If u have a bind mount then it will sync all files
@jasonl9630
@jasonl9630 2 жыл бұрын
Help me use this for typescript, my types is not being registered because node_modules is empty on the host
@jimshtepa5423
@jimshtepa5423 2 жыл бұрын
at 52:16 when you print the list of file in the running container you can see the Dockerfile exists inside the container although we have explicitly included it in the dockerignore file.Could you please explain why that is happening?
@lalitsekharbehera6012
@lalitsekharbehera6012 9 ай бұрын
i think it's because of the volume!
@davychhouk
@davychhouk 3 жыл бұрын
Thank you for a great tutorial. This has been very helpful to me. It would be great if you could put this code on a github repo. It would help a lot.
@SanjeevThiyagarajan
@SanjeevThiyagarajan 3 жыл бұрын
Here you go man. Keep in midn i made a follow up video to this course that includes all the content from this video plus another 3hrs of content so the github repo has the final config for that video. github.com/Sanjeev-Thiyagarajan/node-docker
@davychhouk
@davychhouk 3 жыл бұрын
@@SanjeevThiyagarajan Ahh got it. Thanks :)
@liongirl3892
@liongirl3892 Жыл бұрын
Hi can you please help. Why I couldn't create node images? It's always say none images only instead of node. Can you say the solution for it? Please
@pranavverma37
@pranavverma37 9 ай бұрын
please make an video of cicd pipline on node js
@dilipkumars6556
@dilipkumars6556 Жыл бұрын
❤❤✌✌
@eduardtomasek
@eduardtomasek Жыл бұрын
👍
@maulanaimammalik8933
@maulanaimammalik8933 3 жыл бұрын
Please make node.js crash course tutorials
@uncharted-with-shayon
@uncharted-with-shayon 3 жыл бұрын
please make a ci cd pipeline tutorial
@mbart83
@mbart83 2 жыл бұрын
I have everything set up same as you, but nodemon is not restarting inside container when files change
@mbart83
@mbart83 2 жыл бұрын
oops, turns out not everything, forgot to add "-L" to nodemon command
@rezwansaki
@rezwansaki Жыл бұрын
My container stops or restart when run to create. Please give source code.
@rishabhahuja171
@rishabhahuja171 6 ай бұрын
source code?
@jallpass
@jallpass 4 күн бұрын
Bro please tell me your time on your PC is wrong lol. Otherwise tell me what coffee you drink haha
@ericpadron959
@ericpadron959 Ай бұрын
This
Docker + Typescript: Setting up Typescript to run in Docker container
43:19
Sanjeev Thiyagarajan
Рет қаралды 18 М.
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 101 МЛН
Build a CRUD API with Docker Node.JS Express.JS & PostgreSQL
26:02
Docker - Полный курс Docker Для Начинающих [3 ЧАСА]
3:01:51
microsoft's new AI feature is an absolute dumpster fire
9:34
Low Level Learning
Рет қаралды 49 М.
Docker and PHP Complete Tutorial
2:00:04
Gary Clarke
Рет қаралды 35 М.
Docker Tutorial for Beginners [FULL COURSE in 3 Hours]
2:46:15
TechWorld with Nana
Рет қаралды 5 МЛН
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 247 М.
Docker Tutorial (+ Node & Postgres setup)
40:37
Classsed
Рет қаралды 31 М.
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,7 МЛН
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 3,2 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11
#miniphone
0:16
Miniphone
Рет қаралды 918 М.