Using Docker Compose with Mysql And Node

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

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

  • @diamondbot1605
    @diamondbot1605 Год назад +1

    Thank you! I was working on a project and your demo helped me a lot!

  • @speik3368
    @speik3368 3 года назад +3

    Awesome explanation, thank you from Russia!

    • @onthecodeagain
      @onthecodeagain  3 года назад +1

      так рада что тебе понравилось! из Южной Африки

  • @evil9946
    @evil9946 2 года назад +2

    Thanks bro for the tutorial!!!!!! It was the only one that worked for me. Gracias dsd México

  • @clementcardonnel3219
    @clementcardonnel3219 Год назад

    Seemless tutorial, you've made it so simple. Thank you 💯

  • @justfabien
    @justfabien 2 года назад +2

    Thanks for helping out man! Great tutorial, much appreciated..

  • @yonathanrizky
    @yonathanrizky 2 года назад +1

    thank u from indonesia my friend🤟👊

  • @eilin.mp4
    @eilin.mp4 3 года назад +3

    thank u for the tutorial! really simple and helpful

  • @sayantanpanda3049
    @sayantanpanda3049 3 года назад +2

    what should be the port number of mysql to connect by pooling?

  • @aspirinemaga
    @aspirinemaga Год назад +1

    Thank you ! Very good video tutorial

  • @h00dboy
    @h00dboy 2 года назад +1

    I have the same Bass! Also thanks for the video!!! :)

  • @ahmadooof
    @ahmadooof 3 года назад +3

    Tip:
    For you who have a connection error related to access denied or can't be established between the containers => change "mysql" to "mysql2" in package.json AND when u imported it in index.js file.

  • @veer66
    @veer66 2 года назад +1

    My television is too small, but this video sounds interesting.

  • @OSCAR-CH
    @OSCAR-CH 3 года назад +1

    YOU ARE THE BEST!

  • @Jrrs2007
    @Jrrs2007 2 года назад +2

    Thanks, nice video! Could you do a demo with Typescript and seperating out dev / prod? Also would be good to mention volumes for mysql for data persistance.

    • @onthecodeagain
      @onthecodeagain  2 года назад +1

      Thanks Jeremy :) Might revisit this content with your suggestions!

  • @inamarpereira636
    @inamarpereira636 Год назад +1

    Thanks guy you save me

  • @ericzoona_6098
    @ericzoona_6098 7 месяцев назад

    geat video, thank you so much

  • @ahmadooof
    @ahmadooof 3 года назад +1

    Very great video 🤩🤩🔥

  • @agustinbergara4487
    @agustinbergara4487 3 года назад +1

    Gracias Pa!

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

    Hi there - this might be a stupid question but I'm gonna ask ot anyway... How could you persist the data stored in the SQL DB?
    Thx in advance - any reply is appreciated

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

      It should persist in the docker db as long as you dont destroy the container :)

    • @rahultino
      @rahultino Год назад +1

      @@onthecodeagain that is true. And if someone wants to access that data, they can connect to the MySQL instance within the docker by either starting a shell in the docker, or going to port 3306 of the machine and using the userid and password for the db.

  • @maksymdudyk1718
    @maksymdudyk1718 2 года назад +1

    As far as I know, to deploy an Express -MySQL dockerized app to VPS the docker-compose bundle should contain Nginx or other server. In your video you have none of that. Why?

    • @rahultino
      @rahultino Год назад

      I don't think Nginx is needed because the Node is itself listening on a port. So any http request you send to that port, Node is able to receive it and pass it on to Express.

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

    Why we don't need to open the ports for the database like ports:
    -3306:3306 ?

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

      Docker compose creates a network for us. So the port's are not being accessed from our localhost machine but from the two docker containers.

    • @flydexo
      @flydexo 3 года назад +2

      But when I dont specify the ports my nodejs has an connection error to the db

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

      Having a similar issue

  • @alexquilezz
    @alexquilezz 3 года назад +1

    Thx :))))

  • @weplaypokemon3914
    @weplaypokemon3914 Год назад +1

    Great video. I’m wondering if you can help me with a docker MySQL project. Do you have discord or email?