Docker Build Typescript Node.js Server
HTML-код
- Опубликовано: 9 сен 2024
- Learn how to use Docker with a Typescript Node.js Server.
Code: github.com/ben...
Links from video:
github.com/ben...
nodejs.org/en/...
stackoverflow....
----
If you like cooking, checkout my side project: www.mysaffrona...
----
Join the Discord: / discord
----
Patreon: / benawad
----
Follow Me Online Here:
GitHub: github.com/ben...
LinkedIn: / benawad
Instagram: / benawad97
Twitter: / benawad
#benawad
TikTok: / benawad
----
Follow me online: voidpet.com/be...
#benawad
Excellent video Ben! Looking forward to the next as very interested in Docker/Docker Compose!
Really love your content! so much information but still always on point.
+ you always seem to be working on stuff that I am interested in as well
thank you :)
Good stuff. Just a head's up. If anyone is on Linux you need to add --network="host" to the run command.
Why is that a problem? Can you explain why can't i use port mapping.
Thanks Ben still very relevant today 👍
I was looking for this for a while
.env file can be only used in docker-compose, and for a DockerFile we can set the variables uning the ENV instruction
Awesome demonstration! It'd be awesome if you did some videos on serverless deployments with typescript. Cheers!
thanks for the suggestion
@bawad Thanks a lot it was very helpful for me
1440p 60fps THANK YOU
Excellent bro woow amazing work !!
Love it! Are you still using Traefik? It would be cool to see how you deploy to Digital Ocean
I recently tried Caddy and liked it a little better than Traefik. I will probably to do a video on how to deploy to digital ocean
But how do u develop with this? Having to rebuild it on every file change sounds like a hustle? Running in dev outside docker kind of defeats the purpose...
May you clarify the problem Docker is solving. What are the alternative industry solutions. Thank
Docker let's you setup a container you can run/test locally and have confidence it works the same in production.
Not sure what the alternatives are
Just wondering why you did not use yarn since you have a yarn.lock?
Figured it be simpler to just use npm
Ben, how do you deal with live updates during development using Docker and typescript
Like you want to deploy with 0 downtime?
@@bawad just being able to develop locally without having to rebuild the image every change. I see people create a volume to point to a local directory to get live changes show up in the container using js. But it's a bit different when you have the typescript build step involved.
I see, I actually don't know
I haven't tried using docker for local development