-
Notifications
You must be signed in to change notification settings - Fork 5
/
drawio.yml
41 lines (35 loc) · 1.09 KB
/
drawio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- hosts: homelab
vars:
application: drawio
docker_network: "{{ networks.pub }}"
tasks:
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: jgraph/drawio:24.7.17
env: &drawio_env_vars
LETS_ENCRYPT_ENABLED: "false"
DRAWIO_BASE_URL: "https://{{ application }}.{{ common_tld }}"
DRAWIO_VIEWER_URL: "https://{{ application }}-viewer.{{ common_tld }}/js/viewer.min.js"
DRAWIO_LIGHTBOX_URL: "https://{{ application }}-viewer.{{ common_tld }}"
traefik:
- port: 8080
auth: page
homepage:
name: draw.io
group: Documents
weight: 500
description: "Diagramming"
- name: Create viewer container
ansible.builtin.include_role:
name: docker_container
vars:
name: "{{ application }}-viewer"
image: jgraph/drawio:24.7.17
env:
<<: *drawio_env_vars
traefik:
- port: 8080
rule: Host(`{{ application }}-viewer.{{ common_tld }}`)