A package used to dockerize and make ready Django projects to deploy.
- Run
pip install django-dockerizer
- Run
dockerizecommand in project's base directory (in the same directory with manage.py file)
- Run
dockerize --celerycommand in project's base directory (in the same directory with manage.py file)
- It creates
requirements.txtfiles inbin/devandbin/prodfolders. And all packages which installed in virtual environment(if there is an activated one) or in the system, will be written inrequirements.txtfiles. Just be sure there are Django, psycopg2-binary, celery, django_celery_results, django_celery_beat in INSTALLED_APPS in settings.py
- It configures docker-compose for Postgresql database, so be sure your DATABASE configuration in settings.py is okay for Postgresql database with credentials in .env file
Originally developed by Isa Arifoglu
Released under MIT License.