Docker + Typescript: Setting up Typescript to run in Docker container

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 45

  • @hotchaddi
    @hotchaddi 11 หลายเดือนก่อน

    I spent like a week building my ultimate docker + typescript from many sources and trust me when I say that you have made this way easier than anyone I have seen. I really like this tutorial since you didnt shy away from explaining simple details that everyone just ignores. I'll be using this setup in every project from now. Thanks a lot man! You've got a sub :)

  • @shockgalaxy9849
    @shockgalaxy9849 4 หลายเดือนก่อน

    One of the greatest tutorials I saw in a long time, thanks.

  • @timderks5960
    @timderks5960 ปีที่แล้ว

    This was an amazing video about TS in Docker, holy crap. You summed it up great at the end, this gives viewers a great foundation to build off of, and more importantly: it actually works. Amazing tutorial.

  • @mounis
    @mounis หลายเดือนก่อน

    Exactly what I needed. Thanks Sanjeev.

  • @felype_dev
    @felype_dev ปีที่แล้ว

    Simplesmente a melhor introdução para quem quer começar no mundo docker... Obrigado !!!

  • @OxLuxeCarousell
    @OxLuxeCarousell ปีที่แล้ว

    this deserves more than 7.9k views. great teaching!

  • @adventurer2395
    @adventurer2395 2 ปีที่แล้ว +1

    Great teaching! You take the time to explain the concepts really well like a teacher with examples and anticipating our potential mistakes. I got stuck on a compose volumes error for a long time, and all the videos I had seen prior to yours had not explained the concepts as thoroughly with examples as you did.

  • @Mr_Robot0101
    @Mr_Robot0101 2 ปีที่แล้ว +3

    Dude, I really enjoy your content. Your way of teaching resonates with me and makes learning exciting again.
    Thanks

  • @sturmenta
    @sturmenta 2 ปีที่แล้ว +1

    nice content

  • @MrAjgoron
    @MrAjgoron 2 ปีที่แล้ว +1

    I must admin - really, really good explanation of dockerizing such apps. Keep up that way!

  • @et4493
    @et4493 ปีที่แล้ว

    Top notch quality, as always. Thanks Sanjeev

  • @Ethorbit
    @Ethorbit ปีที่แล้ว

    Thanks for this video and for describing why you did things in the way that you did. It changed my perspective on dockerizing web apps as a whole. Previously I had done things at "run-time" so I'd use volumes and then use ENTRYPOINT or CMD to do the installing/building, but this tutorial taught how it is possible to do it all inside the image efficiently.

  • @tomaszstec5672
    @tomaszstec5672 2 ปีที่แล้ว +1

    Great stuff!!! Nice to see content coming again!!!

  • @Fhrenheit
    @Fhrenheit 2 ปีที่แล้ว +2

    Your tutorials are the best!

  • @joetrades2472
    @joetrades2472 หลายเดือนก่อน

    0:00 preparing node app
    11:00 Dockerizing

  • @ThomasPoth
    @ThomasPoth 9 หลายเดือนก่อน

    This is a really useful walk through. Thank You

  • @norbertocammayo2334
    @norbertocammayo2334 2 ปีที่แล้ว +6

    Awesome as always. Please do some microservices in nodejs

  • @userrrfriendly1908
    @userrrfriendly1908 ปีที่แล้ว

    Amazing tutorial, thanks for sharing!

  • @ahmad.shabeeb
    @ahmad.shabeeb ปีที่แล้ว

    This video is great. Good explanation, love the content 👍

  • @leopolddelassence5224
    @leopolddelassence5224 8 หลายเดือนก่อน

    massive thank you for this video

  • @yuriytigiev8816
    @yuriytigiev8816 ปีที่แล้ว +1

    Could you also share the best practice how to 1) install and use postgres db in a container for dev environment and 2) store and use Environmental variables for dev and prod container?

  • @alanmondragon9848
    @alanmondragon9848 2 ปีที่แล้ว +1

    Thank you, i will implement. New sub !!!

  • @poojithaya
    @poojithaya 10 หลายเดือนก่อน

    This was great thanks

  • @imgohar
    @imgohar 2 ปีที่แล้ว +1

    I learn a lot from you thanks

  • @mohasinsultan
    @mohasinsultan ปีที่แล้ว

    Good one👍👍👍

  • @imasharc
    @imasharc ปีที่แล้ว

    That was a very useful and insightful tutorial. Great job

  • @actuallyisjoha
    @actuallyisjoha 2 ปีที่แล้ว

    Really helpful, thanks!

  • @ExtraTurtle
    @ExtraTurtle ปีที่แล้ว

    When I run the prod docker, i get "failed to compute checksum, usr/src/app/dist not found".
    also, why do you not put volumes in the production docker compose?

  • @jerzyhaa
    @jerzyhaa 11 หลายเดือนก่อน

    I'm watching this movie late but I have a question, or rather doubt.
    In the docker compose file, you map the local folder with the code to the app folder in the container:
    volumes:
    - .:/usr/src/app
    In turn, in Dockerfile you copy the same directory:
    WORKDIR /usr/src/app
    COPY . .
    Isn't this an error? the /usr/src/app directory is mapped to our local application directory on the host.

  • @karlang2637
    @karlang2637 2 ปีที่แล้ว

    Great Video! What happens when npm install while docker is running on dev mode? Does the image automatically install new packages?

  • @ryanoneill6843
    @ryanoneill6843 ปีที่แล้ว

    I had to change my "dev" script to be `npx ts-node-dev src/server.ts`. Otherwise when I run the `docker compose` command for the dev environment, the running container gets an error saying `sh: ts-node-dev: not found`. Why would this happen?

    • @adamoceallaigh2267
      @adamoceallaigh2267 10 หลายเดือนก่อน

      I think it's because ts-node-dev binary hasn't been added to the container's path so when executed like this, the ts-node-dev is correctly found to be not a viable command that can be ran on your container.
      However, as you have installed ts-node-dev and is in your node_modules folder, npx can route the command into the binary located in node_modules folder and run the command perfectly as you have identified

  • @yuriytigiev8816
    @yuriytigiev8816 ปีที่แล้ว

    How to configure debugging in the docker ?

  • @nobodyeverybody8437
    @nobodyeverybody8437 ปีที่แล้ว

    Nide tutorial. But what should we if we want to let the dev and prod images run at the same time. Now when each one is built, the other one will be killed.

  • @quocduong2346
    @quocduong2346 11 หลายเดือนก่อน

    i do and successfully thank you

  • @Daniel-sq5ko
    @Daniel-sq5ko 2 ปีที่แล้ว +1

    Thank you!!!

  • @sammyboy7094
    @sammyboy7094 2 ปีที่แล้ว +1

    Thanks!!

  • @shreejitpal6598
    @shreejitpal6598 2 ปีที่แล้ว

    not working... my composed container is always exiting... I faced the same issue when doing your react container... I'm also unable to find any help on other sources. The logs says configuration file not found. I've tried stack overflow solutions still no help

    • @shreejitpal6598
      @shreejitpal6598 2 ปีที่แล้ว

      the error went away after I changed docker-compose.dev.yml to docker-compose.yml, but now npm in the container is misbehaving and is not able to find package.json. This is getting crazy !

    • @shreejitpal6598
      @shreejitpal6598 2 ปีที่แล้ว

      npm error got solved after I switched from dockercompose v1 to docker compose v2

    • @shreejitpal6598
      @shreejitpal6598 2 ปีที่แล้ว

      strangely though docker-compose.prod.yml did work... maybe docker-compose wants you to have atleast one docker-compose.yml file
      and not just .dev or .prod... very strange

  • @Dino-qz9bt
    @Dino-qz9bt 2 ปีที่แล้ว

    Does debugging work?

  • @petrulunic1525
    @petrulunic1525 ปีที่แล้ว

    like for this content!

  • @keremardicli4013
    @keremardicli4013 2 ปีที่แล้ว

    Where are all docker container files?

  • @ErayTonyali
    @ErayTonyali ปีที่แล้ว

    Thank you!!