Skip to content

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

License

Notifications You must be signed in to change notification settings

nayonacademy/django-docker-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

Also when you access the django container log via make log-web, you will see the following:

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published