Add wiki-js to ansible

This commit is contained in:
Tobias Reisinger 2023-06-16 13:39:51 +02:00
parent b4017bde5e
commit e5ab5b2d00
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 34 additions and 26 deletions
_ansible/roles/wiki-js

View file

@ -0,0 +1,6 @@
---
- name: Deploy {{ svc.name }}
tags:
- wiki-js
block:
- import_tasks: deploy-common-service.yml

View file

@ -0,0 +1,24 @@
svc:
domain: "wiki.serguzim.me"
name: wiki-js
port: 3000
db:
host: "{{ postgres.host }}"
port: "{{ postgres.port }}"
user: "{{ vault_wiki_js.db.user }}"
pass: "{{ vault_wiki_js.db.pass }}"
name: "wikijs"
svc_env:
DB_TYPE: postgres
DB_HOST: "{{ svc.db.host }}"
DB_PORT: "{{ svc.db.port }}"
DB_USER: "{{ svc.db.user }}"
DB_PASS: "{{ svc.db.pass }}"
DB_NAME: "{{ svc.db.name }}"
DB_SSL: 1
compose:
watchtower: true
image: requarks/wiki
env: true