Why I use docker for my web dev projects

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 66

  • @raymondfinton3177
    @raymondfinton3177 2 роки тому +88

    The amount of technologies developers are expected to know is simply staggering to me at times. Your videos do a great service to anyone struggling to get into this industry. Keep posting!

    • @Alan.livingston
      @Alan.livingston 2 роки тому +9

      My first web dev role was in 2003 and it was much easier for someone to be “full stack”. These days there is so much specialisation I think it’s nigh on impossible to keep up with all. I hire plenty of engineers who try to sell themselves as someone who knows it all but when you get down to brass tacks there will almost always be some part of the stack that they aren’t more than passingly familiar with.

    • @Rust_Rust_Rust
      @Rust_Rust_Rust 2 роки тому +3

      @@Alan.livingston it's possible, just you won't have a life outside work

    • @engageintellect
      @engageintellect 2 роки тому +2

      I feel the same way. 😂 azure pipeline, ec2, code deploy, RDS, ALB, s3, Terraform, nginx, docker…. The never ending list of shit.
      I wish I could just use vercel for everything.

    • @faridguzman91
      @faridguzman91 2 роки тому +4

      the thing is even after 4 or 5 years into it you'll still be struggling with the newest and greatest tech, because of unjustified demand for it.

    • @dinoscheidt
      @dinoscheidt 2 роки тому

      Yeah. It’s almost like… engineering. Wait.

  • @st-jn2gk
    @st-jn2gk 2 роки тому +9

    you're the most chill, bro-without-trying-to-be-a-bro person I've ever seen on youtube. I hope you keep posting forever. ❤

  • @nowieszco868
    @nowieszco868 2 роки тому +7

    I really like that you teach with very high quality. Many programming youtubers doesn't care about this and targets only very beginmers. With your tutorials it's possible to find useful things, not only for beginners. Gj man!

  • @GX--X01
    @GX--X01 2 роки тому +1

    Finally a video that explains docker in a way that is easy to understand. I already had a idea but this really made me understand everything better

  • @ericwilson5727
    @ericwilson5727 2 роки тому +1

    I just started on my first collaborative project and this was the exact video I needed to get started with docker quickly. Thank you!

  • @banoulka
    @banoulka 2 роки тому +1

    I was always putting off trying docker because I thought it was hella complex and required a ton of config files but thank you for this!! Has really opened my eyes about how I can get started easily :)

    • @WebDevCody
      @WebDevCody  2 роки тому +1

      It’s pretty easy to be honest once you learn the main commands and how a docker file it setup

  • @sheldonfourie5959
    @sheldonfourie5959 2 роки тому

    just love your videos, we need more like this on why

  • @hunterbertoson156
    @hunterbertoson156 2 роки тому +2

    Docker is very nice. Once we start dockering our web app at work. It made developing so much easier.

  • @vicyoslinuxofficial2607
    @vicyoslinuxofficial2607 2 роки тому

    Bruh, I'm new to programing and your simple explanation of a .yaml file was amazing!
    Thank you for the video!

  • @lukewestondev
    @lukewestondev 2 роки тому

    I love how it takes any surprises away from running on your dev environment vs production

  • @rumonintokyo
    @rumonintokyo 2 роки тому +10

    Been following your channel for sometime. You are one of the few youtubers that cover a wide array of topics for web development and nowadays you even post leetcode problem solving videos. Tbh i really enjoy your format of videos cuz I feel its more towards real life job and what developers experience in their day to day life as an engineer. So I wanted to know what is your learning process like and how do u keep learning so many technologies and keep up to date at a fast pace. Also, I was wondering whether you learnt most of these tech stacks and frameworks from your job or do u usually self-teach yourself to make videos.
    Again, Big Fan!

    • @universe_decoded797
      @universe_decoded797 2 роки тому

      For me I learn just by doing and from youtube I get knowledge. Challenge yourself by installing new things you’ve never done before, (multiple things at the same time). Can’t find it? Google it. Become good at react or vue and in its environment.
      Today I’ve learned about t3-turbo, its a t3 app with next and a t3 app with native combined, now I wanna use docker containers(because of this video lol) and test my functions with jest.

    • @WebDevCody
      @WebDevCody  2 роки тому +1

      I just try to read up on new stuff, maybe watch an overview tutorial, or maybe spend 30 minutes playing around with a prototype. A lot of new tech I only know the surface level about and I try to learn enough to be able to know if this is a great new solution, a remake of an existing solution, or a waste of time. My number 1 learning process is to prototype something basic using the library or framework or language. Learn enough to make something basic.

    • @rumonintokyo
      @rumonintokyo 2 роки тому

      @@WebDevCody Thats makes sense, thank you for your advise.

    • @rumonintokyo
      @rumonintokyo 2 роки тому

      @@universe_decoded797 Yea recently I have been exploring the new UI library called Mantine UI and hoping to perhaps find a suitable tech stack along with the new library to make a project. I will check out the t3 stack also cuz am totally new to it.

  • @techworld3043
    @techworld3043 2 роки тому

    you are awesome. you are my favourite tech youtuber now

  • @bluursito7241
    @bluursito7241 2 роки тому

    I recently started to use vagrant for class and i didnt even think about how powerful it was until i copied a few strings and with that 2 machines with a database and web environment were made in less than 1 minute ready to play and i just love this kind of stuff.

    • @WebDevCody
      @WebDevCody  2 роки тому

      Docker is even faster than vagrant. I used to use vagrant for work years ago and it was super slow to do anything in

  • @levyroth
    @levyroth 2 роки тому +2

    I 100% agree this is the right approach to teach web dev nowadays.

  • @Goyo_MGC
    @Goyo_MGC 2 роки тому +1

    I also really like to use docker in development to share external tools with my team( database, keycloak, mailhog to name a few usefull tools). However on don't find docker as mandatory on side projects. It can get a little hard to find places to run containers for free as it usually use much more ressources. Great Video nonetheless :)

  • @tgeorg12
    @tgeorg12 2 роки тому

    Planetscale works really well too, devs can make a db that branches off another dev db and connect to that. They can discard it and branch off another one again with ease. Prisma push commands work perfectly. It is a paid option though and is hosted externally, but it is still quick and could be worth it for teams. Oh and MySQL only, no PostgreSQL option

  • @bulelanibotman
    @bulelanibotman Рік тому

    so, docker-compose doesn't really need a dockerfile to operate & its a separate utility? wow, thank you! i never knew that

  • @zeph8620
    @zeph8620 Рік тому

    Hey Cody, you're a fountain of knowledge and I thank you for your videos.
    I just started learning Docker and I understand how to Dockerize stuff with Dockerfiles, volumes, and Docker compose, but I was also shown that containerizing your entire development setup is also possible.
    This works by making a Volume link to the host's current project directory with the container's current directory to share files and build.
    Is this a good idea for smaller teams? I like your setup because it requires less setup by just starting up your containerized services THEN running npm run dev/start

    • @WebDevCody
      @WebDevCody  Рік тому +1

      I find it more productive to keep the services using npm outside of docker, otherwise every command you run related to npm must be ran through a container. If your os is windows or mac but your container is Linux, you’ll run into annoying bugs

  • @guitar602991
    @guitar602991 19 днів тому

    amazing , thank you

  • @abe1
    @abe1 2 роки тому

    .yaml is preferred over .yml according to the docs

  • @thegrumpydeveloper
    @thegrumpydeveloper 2 роки тому

    Used to not do this because of compile speed problems with so many node modules but maybe swc/esbuild have made it so that doesn’t matter so much any more?

    • @WebDevCody
      @WebDevCody  2 роки тому +1

      I usually keep node module outside of docker and just keep any third party databases such as redis, Postgres, s3 local, etc in the containrr

  • @butwhothehellknows
    @butwhothehellknows 2 роки тому

    Good job babe!

  • @julpitotho1615
    @julpitotho1615 2 роки тому

    good morning sir!

  • @Vicky-wj7vw
    @Vicky-wj7vw 2 роки тому

    Nice video 🥰

  • @andrewlee7574
    @andrewlee7574 2 роки тому +1

    Hi, is it necessary to also dockerize the nextjs application together with the postgres image?

    • @WebDevCody
      @WebDevCody  2 роки тому +2

      No this video was app related to local development, if your trying to deploy a real system I’d suggest using a managed service like netlify, vercel, railway, for deploying next, then find a database service (planetscale, mongo atlas) for running your database. You wouldn’t run a database in a docker file for the most part unless your keen as a system admin, but even so just pay a company to provide and host your stuff.

    • @andrewlee7574
      @andrewlee7574 2 роки тому

      Thanks, got it!

    • @moon.trance
      @moon.trance 2 роки тому

      ​@@WebDevCody what's wrong with dockerizing whole app for local development. Imagine if you have database, UI tool for database, API, React / any other frontend app, plus you may need to have redis or something for caching and watch changes at shared packages for e.g. Instead of endless installs and npm run dev, you can just do docker-compose up -d and spin up all required services and stuff your app needs for local environment.

  • @Vicky-wj7vw
    @Vicky-wj7vw 2 роки тому

    Please make a video on remix js.

  • @thanushkanth2257
    @thanushkanth2257 2 роки тому

    Hey I find your videos are more easy to understand.. I'm at the point to learn Docker.. could you make video about how to use Docker.? in projects like react, node etc. Thanks. :)

  • @memeproductions4182
    @memeproductions4182 2 роки тому

    You still have to create the db and tables right?do you do it by entering inside the container?

    • @WebDevCody
      @WebDevCody  2 роки тому

      Yes, but I point prisma using a url to my postgres container locally. I don’t need to go into the container at all

    • @memeproductions4182
      @memeproductions4182 2 роки тому

      @@WebDevCody i'm curious, does prima detect the tables the app need aren't there and automatically create them?

    • @WebDevCody
      @WebDevCody  2 роки тому +1

      @@memeproductions4182 yes, it creates a separate table to track which migrations have ran or not on the table and will run any missing migrations

    • @memeproductions4182
      @memeproductions4182 2 роки тому

      @@WebDevCody thx!

  • @frankyb702
    @frankyb702 2 роки тому

    Dont you need to do sql create statements to get the postgress db working?

    • @WebDevCody
      @WebDevCody  2 роки тому

      I use prisms which generates migrations and seed data and applies it to the db

  • @Alex.Shalda
    @Alex.Shalda 8 місяців тому

    Thanks! Docker i cool

  • @al3030
    @al3030 2 роки тому

    Or you could just use supabase for your postgres database 🤷🏻‍♂️and avoid the overhead of Docker?

    • @WebDevCody
      @WebDevCody  2 роки тому +1

      That’s a bad idea imo if you have a real team of developers needing their own isolated db. Having 8 separate database one for each developer and requiring a database connection to develop anything is bad

    • @al3030
      @al3030 2 роки тому

      @@WebDevCody OK for solo projects though 🙂...

  • @GordKs_18
    @GordKs_18 2 роки тому

    😍😍

  • @alaminsakib6480
    @alaminsakib6480 2 роки тому

    Hey, quick question, how do u take care of deployment? I mean when u deploy the projects do u deploy the docker image?

    • @WebDevCody
      @WebDevCody  2 роки тому

      I’d use an existing host like vercel if I’m deploying next. AWS ecs is also good for deploying containers

  • @Elgnonvis
    @Elgnonvis 2 роки тому

    Good
    How to do it with RAILS

  • @NicholasWongCQ
    @NicholasWongCQ 4 місяці тому

    I'm a solo developer. This doesn't sound that useful to me.

  • @uziboozy4540
    @uziboozy4540 2 роки тому

    People still use Docker?
    Podman is the future, and so is cri-o and containerd for container runtimes.

  • @illegalsmirf
    @illegalsmirf 2 роки тому +1

    Docker is excessively complicated and ends up saving next to nothing in terms of resources. Besides, nobody uses just Docker in production, they use Kubernetes, which takes the complexity to such a high level that no single person can fathom it all.