mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Made code more modular and refactored to cmp roles
This commit is contained in:
11
roles/cmp-docker-proxy/README.md
Normal file
11
roles/cmp-docker-proxy/README.md
Normal 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.
|
15
roles/cmp-docker-proxy/meta/main.yml
Normal file
15
roles/cmp-docker-proxy/meta/main.yml
Normal 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
|
10
roles/cmp-docker-proxy/tasks/main.yml
Normal file
10
roles/cmp-docker-proxy/tasks/main.yml
Normal 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] }}"
|
Reference in New Issue
Block a user