Learn Docker to Make Deployment Easy (step-by-step)

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Docker allows us to keep our local environment similar to our production environment. We will use FastAPI along with Docker and python to create a professional environment easy!
    💻 Git Repository: www.codingwith...
    🎥 React + FastAPI: • How to build a React +...
    🎥 AWS Lambda + FastAPI: • Deploy FastAPI on AWS ...
    🎥 MongoDB + FastAPI: • Unlocking the Power of...
    🎥 MySQL + FastAPI: • How to build a FastAPI...
    🎥 PostgreSQL + FastAPI: • How to build a FastAPI...
    🎓 Courses can be found:
    FastAPI Beginner & Advanced: www.udemy.com/...
    Learn Chatbot Development: www.udemy.com/...
    👨‍💻 Hi, I am Eric!👨‍💻
    Hey! I’m a seasoned developer and Cloud enthusiast. I love sharing my knowledge and helping others to discover the exciting world of programming and cloud technologies. For more tutorials, tips, and tech magic, don’t forget to hit that subscribe button and ring the bell for notifications!
    🙏 Support The Channel 🙏
    If you found this tutorial helpful, please give it a thumbs up 👍, comment, and share it with your network 🌍
    PS: The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you.
    #fastapi #python #docker

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

  • @CarlosDZ87mx
    @CarlosDZ87mx 5 หลายเดือนก่อน +2

    Good video but not needing to specify the port on localhost is because you bind port 80 from your local machine to the container and port 80 is the default port for http connections. Any other port and you would need to specify it when running on localhost

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

      Thanks for the added context 🙂

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

    Why dont you use a newer version of python?
    I see 3.9 a lot when using docker, but the newer versions are faster and have performance upgrades right?

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

      There is no real reason. There isn't any major changes so I have taken the time.

  • @TaiwoMegbope
    @TaiwoMegbope 5 หลายเดือนก่อน +1

    Great job Eric. You've been such a resource for me. Your Udemy course "A chat app in a weekend" has got me glued to all your content.
    Thank you!

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

      Wow, thanks! That means so much ❤️

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

    Great video! I also came from your Fast API Udemy course and I really liked it. What's the difference between using a python virtual environment vs a docker though? I always use venv but I see many others recommend to use dockers but I don't really know why?

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

      There have two different purposes:
      - venv is a module available in Python that creates a virtual environment. This allows you to create isolated individual spaces for your Python projects where you can install and manage packages independently of other projects.
      - Docker provides more comprehensive isolation than venv by virtualizing the operating environment itself, whereas venv is limited to Python-specific dependencies.
      venv is super light weight - and for small projects I don't containerize them.
      TLDR: If you are new to Python/Deployments you don't need Docker - but i can help when deploying in the future for complex apps.

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

    Hubiera quedado mejor una base de datos como MySQL o Postgresql para este ejemplo ya que sqlite es bastante básica y literal esa madre se crea sola

  • @ThaSkoomaDealer
    @ThaSkoomaDealer 5 หลายเดือนก่อน +1

    Thanks for considering the opinions of your followers! This is a really great and simple tutorial. From now on, we should focus on multi-container apps (another video content idea). Thanks a lot Eric!

    • @codingwithroby
      @codingwithroby  5 หลายเดือนก่อน +1

      Totally agree! I am here for you all ❤️

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

    Have you looked into VScode dev environments (it is built in)

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

      You mean like instead of using venv?

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

    1GB 🥲

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

      Is that your image? With modern computers you will have plenty of space 🙂

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

      @@codingwithroby I believe that was the image size of the app in your video 😅