pip install cookiecutter
cookiecutter gh:mnako/cookiecutter-django-postgres-redis-celery
and answer the questions.
This will give you a Docker-Compose project that includes:
- Postgres database;
- Redis;
- Django project;
- Celery worker;
- Celery Beat.
To start your new project do:
cd <project_dir>
make up
wait for it to finish building and go and see your new project at localhost:8000.
To stop the containers do:
make down
To test your app do:
make test
To create an optimised production build do:
make build VERSION=0.0.0
To push the optimised images to the registry do:
make push VERSION=0.0.0