Skip to main content

Command Palette

Search for a command to run...

๐Ÿš€ Deployed a Django Notes App with Docker, Nginx & MySQL!

Published
โ€ข2 min read
๐Ÿš€ Deployed a Django Notes App with Docker, Nginx & MySQL!
M

Hi, Iโ€™m Mohit Deore passionate about cloud computing, DevOps, and frontend technologies. I love building scalable applications and exploring new tools in the cloud and container ecosystem.

I recently cloned a Django Notes App project and tried deploying it live. It was an amazing hands-on experience with Docker, Nginx, and MySQL! ๐Ÿณ

What I Did :

  • Cloned the Project โ€“ Got the Django backend, Docker setup, and Nginx configuration.

  • ๐Ÿ”น Set Up Environment Variables โ€“ Configured database details so Django could talk to MySQL.

  • ๐Ÿ”น Dockerized the App โ€“ Created containers for Django and Nginx.

  • ๐Ÿ”น Attached Volumes โ€“ Persisted MySQL data with docker volumes for safe storage. ๐Ÿ’พ

  • ๐Ÿ”น Used Docker Compose โ€“ Connected Django, MySQL, and Nginx together in one network.

  • ๐Ÿ”น Configured Nginx โ€“ Acted as a reverse proxy to forward web requests to Django.

  • ๐Ÿ”น Health Checks & Debugging โ€“ Made sure everything was running smoothly before going live.

Challenges I Faced:

  • โŒ โ€œHost not foundโ€ errors โ€“ Fixed by matching service names in Docker Compose and Django .env.

  • โŒ Containers exiting immediately โ€“ Solved by checking logs and adjusting configs.

  • โŒ Permission issues โ€“ Handled using proper access permissions.

Outcome & Learnings:

  • โœ… Successfully deployed a fully live web app accessible via server IP.

  • โœ… Learned Docker networking, volume management, and container orchestration.

  • โœ… Got hands-on with Nginx as a reverse proxy.

  • โœ… Gained experience in debugging real deployment issues.

More from this blog

Hosting Your First Website on AWS EC2

5 posts