Tools to deploy Django apps & related Common Ground components with Ansible.
Some of the roles in this collection contribute to installing a Django app with Docker on a VM and exposing it to the outside world.
The relevant roles for this are:
-
django_app_docker
: run the backend container(s), including Redis cache, Celery workers, Celery beat...This will bind the container ports to the host system, ready for a reverse proxy.
-
django_app_nginx
: provides the template for the NGINX reverse proxy. The template is inspired on maykin-deployment, and variables fromdjango_app_docker
are re-used where possible. Note that this role does NOT install or configure nginx, look intonginxinc.nginx
role for that.
The architecture is so that:
- Given a VM with Docker provisioned (OS flavour doesn't matter)
- An isolated network is provisioned for your app
- Which is then exposed via NGINX
- Where SSL can be disabled.
Work in progress.