Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 2.05 KB

README.md

File metadata and controls

41 lines (33 loc) · 2.05 KB

Deploy Django and Nextjs using Nginx, Celery, Redis and Postgresql with Docker

A full auth django project with djoser. In this project i used the djoser lib to make a full authentication with JWT Tokens, OAuth and Email Verification.

Advantages

  1. Ready to use with your django/nextjs project.
  2. Combined with NGINX, Celery, Tailwind to handle relevent things.
  3. Alpine based images are used, so that sizes of the images are compartively low.
  4. Now comes built it with Numpy, Scipy and Pandas support. So you can integrate your datascience projects with this. Instructions for integrating these libraries are also shared in the Dockerfile.
  5. With Numpy, Pandas and Scipy dependecies installed, the total size is 657MB(may differ if you have more packages). Without these, size reduces to 390MB.
  6. Now comes with support to install Pillow using django.

Basic Usage

  1. First run make build inside root directory.
  2. Then run make up to start up the project for first time.

Checkout the commands section for more usage.

Preview

A default Django project resides in src directory. So, when you start the project, you will see the following screen in 8000 port:

Commands

To use this project, run this commands:

  1. make up to build the project and starting containers.
  2. make build to build the project.
  3. make start to start containers if project has been up already.
  4. make stop to stop containers.
  5. make shell-web to shell access web container.
  6. make shell-db to shell access db container.
  7. make shell-nginx to shell access nginx container.
  8. make logs-web to log access web container.
  9. make logs-db to log access db container.
  10. make logs-nginx to log access nginx container.
  11. make collectstatic to put static files in static directory.
  12. make log-web to log access web container.
  13. make log-db to log access db container.
  14. make log-nginx to log access nginx container.
  15. make restart to restart containers.