monica: add docker compose-based config
This commit is contained in:
parent
df463ed7cb
commit
363eaecc07
10 changed files with 173 additions and 0 deletions
3
roles/monica-web/meta/main.yml
Normal file
3
roles/monica-web/meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: caddy
|
||||
9
roles/monica-web/tasks/main.yml
Normal file
9
roles/monica-web/tasks/main.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Ensure Caddyfile is present
|
||||
template:
|
||||
src: 'monica.Caddyfile.j2'
|
||||
dest: '/etc/caddy/monica.Caddyfile'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: caddy-reload
|
||||
3
roles/monica-web/templates/monica.Caddyfile.j2
Normal file
3
roles/monica-web/templates/monica.Caddyfile.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
prm.roosens.me {
|
||||
reverse_proxy {{ groups['monica'][0] }}:8001
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue