Deploy NodeJS Apps with Docker [2022]

  Рет қаралды 31,291

The Nerdy Canuck

The Nerdy Canuck

Күн бұрын

Want to learn how to pop your NODE JS app into a docker container? Look no further!
Github: github.com/joe...
Video Info
Music by Tesko / prod. THXMOS:
/ @prod.thxmos6970
Support
Like this video? You can show your support by buying me a coffee ☕❤️: www.buymeacoff...
Socials
Github: github.com/joe...
Twitter: / thenerdycanuck
About The Channel
The knowledge that I share here is mostly from my personal experiences. I wouldn't say I'm a 20 year professional, rather I am just a DevOps / Software Engineer with a lot of experience who enjoys teaching what I know in my spare time. I believe that sharing some of my basic knowledge on this platform can help others get started. There are many ways to program something and the videos you see here are my take on the NodeJS / Typescript / and sometimes Unity world. If this channel helps you learn, or helps you think differently then my job is done 😊.
#nodejs #docker #typescript

Пікірлер: 27
@mits9991
@mits9991 2 жыл бұрын
Really plain and simple tutorial 🙏🏽 thank you I’m gonna deploy my nuxt3 project tomorrow at the office. As our front Enders want a fast CDI lane. Instead of 20 years old php legacy deployment. 🤞🏽 ill succeed and make it work in a few hours. I’m gonna search for your react docker video now 🤓
@RottynDawg
@RottynDawg 2 жыл бұрын
Best video I found on this topic by a long shot, thank you!
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
Thanks! What else do you wanna see?
@tudor14
@tudor14 Жыл бұрын
Title may come off as misleading, especially someone new to Docker might think you're 'deploying' a NodeJS app to a service like Google Cloud Run or AWS but really building the image and running the docker container
@TheNerdyCanuck
@TheNerdyCanuck Жыл бұрын
Hmm, I could change the title
@tudor14
@tudor14 Жыл бұрын
@@TheNerdyCanuck could do, make it reflect you're just running it locally
@АлекандрМарченко-д6г
@АлекандрМарченко-д6г 2 жыл бұрын
Can you show how to build the environment for Laravel-nodejs-pusher-echo-websocket project?
@TheNerdyCanuck
@TheNerdyCanuck Жыл бұрын
Is that something you would be interested in?
@АлекандрМарченко-д6г
@АлекандрМарченко-д6г Жыл бұрын
@@TheNerdyCanuck I have already found the solution
@geosystems2106
@geosystems2106 Жыл бұрын
"Since I have typescript, I have my build command in package.json" -> good for you :) Mine says "missing script build" and a bit lost what exactly it should be :/
@mrmartinwatson1
@mrmartinwatson1 Жыл бұрын
you might not need a build script since typescript build compiles to javascript anyways. you can just use node on the path to the file you want to run. The tsc command is just going to run whatever he had configured in his typscript settings. so instead of `npm run build`, you don't have to do anything, and following this guide, the file you run is what goes after that cmd ['node', 'myfile.js']. If you are using something that requires a build script like react or typescript then you should first consult a seperate guide on compiling then remove anything that launches the application before returning back here.
@amishkrishna9718
@amishkrishna9718 Жыл бұрын
but your title is deploy node js app where is deployment where is nginx and all the commands that use in deployment this is clickbate
@fabrzy3784
@fabrzy3784 2 жыл бұрын
this doesnt really show how to deploy the container tho, but good job
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
That is out of scope for this video as there are 1000 places to do so :)
@mybackupvideos1103
@mybackupvideos1103 5 ай бұрын
lol you didn't explain how to deploy
@jc3209
@jc3209 2 жыл бұрын
How do you handle environmental variables?
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
There is a docker keyword called ENV I believe
@electricimpulsetoprogramming
@electricimpulsetoprogramming Жыл бұрын
your speaking skills are very great, I'd watch you talk about anything lol
@Billcomesback
@Billcomesback Жыл бұрын
When you refer to Version in min 8:05, you mean NodeJs Version or Docker version?
@АлекандрМарченко-д6г
@АлекандрМарченко-д6г 2 жыл бұрын
Cool. Thank you. Keep on.
@TheNerdyCanuck
@TheNerdyCanuck 2 жыл бұрын
No problem!
@nested9301
@nested9301 Жыл бұрын
so where is the deployment part?
@martinmendez695
@martinmendez695 Жыл бұрын
Is it better to bundle before building a docker image? The node_modules directory is huge. What would be the best way to bundle the nodejs project... I tried webpack, but it is not really good for backend apps, and it does not work with dynamic dependencies (for instance, Sequelize).
@mybackupvideos1103
@mybackupvideos1103 5 ай бұрын
perhaps you need to use different layers for node_modules and for app itself. in case of 0 changes in package(-lock).json files it will skip that step
@martinmendez695
@martinmendez695 5 ай бұрын
@@mybackupvideos1103 I was doing a webapp to be a SAAS, so every client had the same app running on different port on the server. So, the same image was ran using the same node_modules directory with it was a volume mapped to each container. It worked, and I did not find performance issues.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 450 М.
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 9 МЛН
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 650 М.
Deploy Your NodeJS Typescript App to AWS Elastic Beanstalk [2022]
7:44
The Nerdy Canuck
Рет қаралды 20 М.
Docker + Typescript: Setting up Typescript to run in Docker container
43:19
Sanjeev Thiyagarajan
Рет қаралды 20 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 977 М.
Build a CRUD API with Docker Node.JS Express.JS & PostgreSQL
26:02
RESTful API using Node JS, MongoDB & Typescript IN-DEPTH [2022]
49:06
The Nerdy Canuck
Рет қаралды 56 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 115 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 611 М.
How to build docker image for nodejs apps
28:47
Hitesh Choudhary
Рет қаралды 81 М.