This defines and runs a multi-container Dockerized Django application that uses PostgreSQL and is served by Nginx.
TBA
outline of config steps: more details to come
- change allowed_hosts in webapp/settings.py
- docker-compose exec app python manage.py migrate
- docker-compose exec app python manage.py collectstatic
- docker-compose exec app python manage.py createsuperuser
- change database name, user, password
- set
DJANGO_SECRET_KEYenvironment variable indocker/django/Dockerfile
ENV DJANGO_SECRET_KEY 1234567890!@#$%^&*()MY!SUPER!SECET!KEY)(*&^%$#@!)
- ...
- ...
- ...
- change DEBUG to False