- Deploy Django, Gunicorn, NGINX, Postgresql using Docker
- Serve Static Files by Nginx from Django using Docker
- Docker: Use Celery in Django(Redis as Broker)
% Postgresql would be used in production
- First run
make buildinside root directory. - Then run
make build-vueon root directory. (See command 15.) - At last run
make upto start up the project for first time.
Checkout the commands section for more usage.
A default Django project resides in src directory. So, when you start the project, you will see the following screen in 8000 port:
Also when you access the django container log via make log-web, you will see the following:
To use this project, run this commands:
make upto make containers and start on backgroundmake buildto build the project.make startto start containers if project has been up already.make downto stop containers.make shell-webto shell access web container.make shell-dbto shell access db container.make shell-nginxto shell access nginx container.make logs-webto log access web container.make logs-dbto log access db container.make logs-nginxto log access nginx container.make collectstaticto put static files in static directory.make log-webto log access web container.make log-dbto log access db container.make log-nginxto log access nginx container.make build-vuemake build.js file and copy to js directory

