Add umami to ansible

This commit is contained in:
Tobias Reisinger 2023-06-13 20:48:16 +02:00
parent 7ff7dfe807
commit ecd00fc75d
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
15 changed files with 91 additions and 49 deletions
_ansible/roles/umami/vars

View file

@ -0,0 +1,21 @@
svc:
domain: "analytics.serguzim.me"
name: umami
port: 3000
db:
host: "{{ postgres.host }}"
user: "{{ vault_umami.db.user }}"
pass: "{{ vault_umami.db.pass }}"
db: umami
svc_env:
DATABASE_URL: postgres://{{ svc.db.user }}:{{ svc.db.pass }}@{{ svc.db.host }}/{{ svc.db.db }}
DATABASE_TYPE: postgresql
FORCE_SSL: 1
HOSTNAME: "{{ svc.domain }}"
HASH_SALT: "{{ vault_umami.hash_salt }}"
compose:
watchtower: true
image: docker.umami.dev/umami-software/umami:postgresql-latest
env: true