django_rest_api_app

blogposts

This is a basic Django Rest API application where you can create and view blogposts

The main thing to know here is the packging and deployment part.

It includes -

  1. Nginx - for reverse proxy
  2. Gunicorn with ASGI
  3. MariaDB running in seperate contianer
  4. Serving on https (self signed cert for now)

Run

Please update your values in .env file and certs in certs dir

docker compose build
docker compose up

Demo