Loading video player...
Code Repo: https://github.com/GuptaKshitiz/FastAPI-E-Commarce/tree/dev-deployment Ready to bring your application to life? In Part 1, we built the individual Dockerfiles for our FastAPI, Celery, and DB components. Now, in Part 2, we connect the dots using Docker Compose to launch a full production-ready stack on a Linux server! ๐๏ธ Whatโs in this Video? We move from isolated containers to a unified orchestration. You will see: 1. Writing the Docker Compose File: A step-by-step breakdown of defining services, networks, and volumes for FastAPI, Postgres, Redis, and Celery. 2. Environment Variables & Secrets: Securely managing database credentials and broker URLs. 3. Linux Server Installation: How to transfer your code to a Linux environment and run docker-compose up. 4. Live Testing with Postman: We verify the API endpoints, database persistence, and background job queue (Celery) to ensure everything is working perfectly. ๐ Missed Previous Part? If you haven't containerized your FastAPI app yet, watch these Part here: [https://youtu.be/clFKYoUlnVo] [https://youtu.be/8HzbxV6rgUQ] ๐ ๏ธ Key Technical Highlights 1. Service Dependency: Using depends_on to ensure your DB and Redis start before your web app. 2. Volume Mapping: How to keep your Postgres data safe even if the container restarts. 3. Background Tasks: Watching Celery pick up jobs from Redis in real-time. 4. Linux Deployment: Using the terminal to manage your production stack. ๐ Timestamps 00:00 - Introduction with What we will learn 00:25 - Updating DockerFile for Celery and Web Application 03:03 - Designing Docker-Compose File 24:12 - Code Changes for Docker-Compose 29:04 - Running and Fixing Docker-compose File With Postman Test ๐ฅ Perfect for DevOps, backend engineers, and cloud learners building real-world deployments. Don't forget to Like, Share, and Subscribe for more advanced FastAPI and Python development tutorials! Subscribe for regular, high-quality tech tutorials! https://www.youtube.com/@CodeGoat-s2y?sub_confirmation=1 #FastAPI #DockerCompose #LinuxDeployment #Postman #DevOps #PythonBackend #CeleryWorker #Redis #SoftwareEngineering