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

Комментарии • 24

  • @themarksmith
    @themarksmith 5 лет назад +2

    Excellent video Ben! Looking forward to the next as very interested in Docker/Docker Compose!

  • @5iUsroftE5WZL6
    @5iUsroftE5WZL6 5 лет назад +2

    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

    • @bawad
      @bawad  5 лет назад

      thank you :)

  • @thomasjohnson1563
    @thomasjohnson1563 5 лет назад +4

    Good stuff. Just a head's up. If anyone is on Linux you need to add --network="host" to the run command.

    • @mabroorahmad2182
      @mabroorahmad2182 3 года назад

      Why is that a problem? Can you explain why can't i use port mapping.

  • @ToreyLittlefield
    @ToreyLittlefield 2 года назад

    Thanks Ben still very relevant today 👍

  • @zehijean8817
    @zehijean8817 5 лет назад

    I was looking for this for a while

  • @adrianaselenatitoilasaca6059
    @adrianaselenatitoilasaca6059 4 года назад

    .env file can be only used in docker-compose, and for a DockerFile we can set the variables uning the ENV instruction

  • @jessewright870
    @jessewright870 5 лет назад

    Awesome demonstration! It'd be awesome if you did some videos on serverless deployments with typescript. Cheers!

    • @bawad
      @bawad  5 лет назад

      thanks for the suggestion

  • @user-sy5ol1gz7s
    @user-sy5ol1gz7s Год назад

    @bawad Thanks a lot it was very helpful for me

  • @VladyVeselinov
    @VladyVeselinov 5 лет назад +1

    1440p 60fps THANK YOU

  • @georgemariona1507
    @georgemariona1507 5 лет назад

    Excellent bro woow amazing work !!

  • @g_dfe1
    @g_dfe1 5 лет назад

    Love it! Are you still using Traefik? It would be cool to see how you deploy to Digital Ocean

    • @bawad
      @bawad  5 лет назад

      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

  • @romanext921
    @romanext921 2 года назад

    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...

  • @AmanzeStudios
    @AmanzeStudios 5 лет назад

    May you clarify the problem Docker is solving. What are the alternative industry solutions. Thank

    • @bawad
      @bawad  5 лет назад

      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

  • @seanyu5044
    @seanyu5044 5 лет назад

    Just wondering why you did not use yarn since you have a yarn.lock?

    • @bawad
      @bawad  5 лет назад

      Figured it be simpler to just use npm

  • @ryanngalea
    @ryanngalea 4 года назад

    Ben, how do you deal with live updates during development using Docker and typescript

    • @bawad
      @bawad  4 года назад

      Like you want to deploy with 0 downtime?

    • @ryanngalea
      @ryanngalea 4 года назад

      @@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.

    • @bawad
      @bawad  4 года назад +1

      I see, I actually don't know
      I haven't tried using docker for local development