Made code more modular and refactored to cmp roles

This commit is contained in:
2025-07-09 20:15:32 +02:00
parent 993469fd82
commit 7a38241485
53 changed files with 184 additions and 397 deletions

View File

@@ -0,0 +1,11 @@
# Docker Compose with Web Proxy
This role combines the standard Docker Compose setup with a reverse-proxy for any application.
## Features
- **Docker Compose**
Brings up containers, networks, and volumes via the `docker-compose` role.
- **Reverse Proxy**
Uses the `srv-web-proxy-domain` role to expose your application under a custom domain and port.

View File

@@ -0,0 +1,15 @@
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: >
Combines the docker-compose role with srv-web-proxy-domain to
deploy applications behind a reverse proxy.
company: |
Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world
license: "CyMaIS NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl"
galaxy_tags:
- docker
- compose
- proxy

View File

@@ -0,0 +1,10 @@
- name: "include docker-compose role"
include_role:
name: docker-compose
- name: "include role srv-web-proxy-domain for {{application_id}}"
include_role:
name: srv-web-proxy-domain
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"