How blauwe-lucht/ansible-role-docker-webapps works
This Ansible role deploys multiple webapps behind an nginx reverse proxy on a Docker host. Its main workflow is to configure webapps and a domain, deploy the app and proxy containers, route site and test-subdomain traffic, and provide HTTPS using either Let’s Encrypt certificates with certbot renewal or self-signed certificates. The tree identifies the role’s task, template, and certificate files, but no source excerpts were supplied; relationships below are limited to capabilities and flows explicitly described in the README.
Main entry points: tasks/main.yml Role tasks · docker-compose.yml.j2 Compose template · _ssl-site.yml SSL site tasks · defaults/main.yml Role configuration
Components 14
Deployment
- Role configuration
defaults/main.yml - Role tasks
tasks/main.yml - Compose template
templates/docker-compose.yml.j2 - Webapp containers
templates/docker-compose.yml.j2
Proxy routing
- nginx proxy container
templates/docker-compose.yml.j2 - nginx site config
templates/nginx/site-ssl.conf.j2 - Self-signed site config
templates/nginx/site-self-signed-ssl.conf.j2
TLS certificates
- SSL site tasks
tasks/_ssl-site.yml - TLS support files
files/certbot - certbot renewal container
templates/docker-compose.yml.j2
Other components
- Ansible operator
- Docker host
- Let's Encrypt
- Webapp clients
Connections 15
- Ansible operator → Role tasks: runs role
README.md - Role configuration → Role tasks: configures
README.md - Role tasks → Docker host: deploys containers
README.md - Role tasks → Compose template: generates compose
README.md - Compose template → Webapp containers: defines services
README.md - Compose template → nginx proxy container: defines proxy
README.md - nginx proxy container → Webapp containers: forwards requests
README.md - nginx proxy container → nginx site config: uses site config
README.md - Webapp clients → nginx proxy container: requests HTTPS
README.md - Role tasks → SSL site tasks: configures TLS
README.md - SSL site tasks → Let's Encrypt: requests certificates
README.md - Compose template → certbot renewal container: defines renewal
README.md - certbot renewal container → Let's Encrypt: renews certificates
README.md - SSL site tasks → Self-signed site config: uses self-signed TLS
README.md - SSL site tasks → TLS support files: uses TLS assets