How to Dockerize a React + Flask Application

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 52

  • @shivendra.p.kushwaha
    @shivendra.p.kushwaha 3 роки тому +37

    Give this man a medal... 🏆 his contributions to Flask is commendable...

  • @spab87
    @spab87 Місяць тому

    Dear Miguel, you have saved a few liters of my blood, sweat and tears. You are the real MVP!

  • @BoodyMr
    @BoodyMr 3 роки тому +4

    I've already learned that from your flask mega tutorial, so I just came here to like the video and wish you the best

  • @oscarin55irene
    @oscarin55irene 9 місяців тому

    Still using this video after 2 years as main reference for dockerizing my web projects :)
    Thanks, Miguel!

  • @99macio
    @99macio 2 роки тому

    What an MVP! Just spend 6h of my life trying to do what u did in the video. 5 minutes with part of it fixed my problem. Great content!

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

    Thank you Miguel, that ties a bunch of fiddly little details together nicely.

  • @j.r.s8737
    @j.r.s8737 3 роки тому +1

    Thank you Miguel! I'm a fresh grad, brand new developer and I learn through your tutorials.

  • @akagamishanks7991
    @akagamishanks7991 3 роки тому +1

    Another amazing video as expected! Pls more of docker Miguel

  • @jetra_h
    @jetra_h 3 роки тому +1

    You are the best in the field, Miguel! ❤️

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

    Thank you so so much for this tutorial series, Miguel!! This was so helpful and well taught!

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

    Series about React + Flask is great

  • @mw6788
    @mw6788 3 роки тому +5

    Hey Miguel, thanks a lot for your efforts. You are presenting the stuff very well and you are concise and quick at the same time. I like it a lot. Fo extending your tutorial it would be nice if you could show how to connect a MongoDB or a MySQL database on top of it and use volumes between the docker containers. I am working at that currently and would really like to have your opinion on that. :) Cheers, take care.

  • @israell3988
    @israell3988 3 роки тому +1

    I wanna invite you a beer. You're the man.

  • @andrzejkurowski2293
    @andrzejkurowski2293 3 роки тому

    Thank you so much!!! I am developing small flask and svelte app (my firtst web app), and thanks to you I finally learned how to properly serve static frontend files from dockerized flask app! You saved me alot of time and frustration.

  • @rosshoyt2030
    @rosshoyt2030 3 роки тому

    It's funny, I started my Carbon footprint calculator using your react + flask app tut. Now I was looking to dockerize it and I found this! Thank you 👍👍

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

    Excellent sir - Thank you indeed

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

    Thanks!

  • @Felipe-53
    @Felipe-53 3 роки тому +1

    Wow, thanks so much for sharing this. Excellent content as always, you're the best!

  • @ThaEzioAuditore
    @ThaEzioAuditore 3 роки тому

    Brilliant stuff !! Hats off to you for sharing this.

  • @zkwinkle24
    @zkwinkle24 3 роки тому

    Massively helpful tutorial, thank you very much!!

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

    Thanks for this tutorial. How would we deploy this app to a real production web server?

  • @DanielFerreira-gu1di
    @DanielFerreira-gu1di 3 роки тому +1

    Really cool. Cheers!

  • @_i_m_
    @_i_m_ 3 роки тому

    Great guide, thank you.

  • @michaels8297
    @michaels8297 3 роки тому +1

    Thank you!

  • @guusqwertyuiopasdfgh
    @guusqwertyuiopasdfgh 3 роки тому

    Hi Miguel, in terms of security is it better to create user in the docker container and make the flask app run under this user? or does this not really matter?

  • @mdashrafbhuiyasaimon9278
    @mdashrafbhuiyasaimon9278 8 місяців тому

    I have just one question: If I want to configure the client and move to reverse proxy like localhost:80, how do I automatically make the React app run?

  • @rosendo3219
    @rosendo3219 3 роки тому +1

    Miguel when will your react mega tutorial be coming out?

  • @playgoods
    @playgoods 3 роки тому

    many thanks

  • @thisisthebestid
    @thisisthebestid 3 роки тому

    Amazing!

  • @wduandy
    @wduandy 3 роки тому

    When you will come back?

  • @learnnow9598
    @learnnow9598 3 роки тому

    Thanks sir💙. Can you make video of using redis with 2 socket io servers.

  • @trueresources3847
    @trueresources3847 3 роки тому +1

    hello sir miguel grinberg, the video calling app that you made, can it be deployed in heroku. I'm having difficulty running it. please help. I reached the step of python app.py. But as i launch the app it is blank completely.

    • @miguelgrinberg
      @miguelgrinberg  3 роки тому

      Check the Heroku logs for errors, I'm not sure what else to suggest. The application doesn't have anything that would prevent it from running in a dyno.

    • @trueresources3847
      @trueresources3847 3 роки тому

      @@miguelgrinberg great sir. your reply was very much appreciated.

  • @rangabharath4253
    @rangabharath4253 3 роки тому +1

    awesome

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

    I cant believe I have not found you earlier, great work... One Q I had for you.. When built as a combo image can the api's be accessed separately?

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

      Yes, the API cannot tell who sends requests to it, so it accepts requests from all sources.

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

      @@miguelgrinberg due to outside the network or from the network.

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

      @@industrialcounsel4501 I don't really understand what you mean. A web server listens on a network interface, so it can receive requests from that network interface. What do you mean by "outside the network". You may be asking about something that is completely unrelated to the web server.

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

      @@miguelgrinberg If I'm understanding this correctly though, when you run your docker-compose it does not connect the api ports on the image to any ports on your system, so you cannot access the api through your browser.

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

      @@decimater75 You can map port 5000 of the API container to a port on your host, then you can send requests to the API bypassing the client.

  • @programmer1379
    @programmer1379 3 роки тому

    When you test with docker-compose you still use port 3000 despite the fact that the config says 80. I tried with localhost only without specifying 3000 but it did not work.

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

      Port 80 is only used inside the nginx container. My docker compose file maps this port to port 3000 in the host computer.

    • @programmer1379
      @programmer1379 3 роки тому

      @@miguelgrinberg How to avoid typing the :3000 in the browser?

    • @miguelgrinberg
      @miguelgrinberg  3 роки тому

      @@programmer1379 on your development machine? Why would you want to do that? You can I guess, but what is the point? It is not worth the trouble.

    • @programmer1379
      @programmer1379 3 роки тому

      @@miguelgrinberg For a production server. I don't want users to have to type the port.

    • @miguelgrinberg
      @miguelgrinberg  3 роки тому +1

      @@programmer1379 For a production server you will map port 80 from the nginx container to port 80 and 443 in your host, and you will do a proper TLS/SSL setup. I did not intend to cover how to deploy in this video, the topic is how to create the containers. There are a ton of tutorials out there on how to deploy Docker containers.

  • @bboywaters
    @bboywaters 3 роки тому +1

    Great content! Please start making Udemy courses around these topics. You will definitely earn a 5-star rating.👍

  • @BrendanMetcalfe
    @BrendanMetcalfe 3 роки тому

    👍👏👏👏