Add wiki-js to ansible
This commit is contained in:
parent
b4017bde5e
commit
e5ab5b2d00
7 changed files with 34 additions and 26 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -13,3 +13,5 @@ diagram_assets/
|
|||
/umami/
|
||||
/caddy/config/conf.002.d/analytics.serguzim.me.conf
|
||||
/watchtower/
|
||||
/wiki-js/
|
||||
/caddy/config/conf.002.d/wiki.serguzim.me.conf
|
||||
|
|
|
@ -11,3 +11,4 @@
|
|||
- gitea
|
||||
- umami
|
||||
- watchtower
|
||||
- wiki-js
|
||||
|
|
|
@ -6,3 +6,4 @@
|
|||
- gitea
|
||||
- umami
|
||||
- watchtower
|
||||
- wiki-js
|
||||
|
|
6
_ansible/roles/wiki-js/tasks/main.yml
Normal file
6
_ansible/roles/wiki-js/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Deploy {{ svc.name }}
|
||||
tags:
|
||||
- wiki-js
|
||||
block:
|
||||
- import_tasks: deploy-common-service.yml
|
24
_ansible/roles/wiki-js/vars/main.yml
Normal file
24
_ansible/roles/wiki-js/vars/main.yml
Normal 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
|
|
@ -1,7 +0,0 @@
|
|||
DB_TYPE=postgres
|
||||
DB_HOST=db.serguzim.me
|
||||
DB_PORT=5432
|
||||
DB_USER=wikijs
|
||||
DB_PASS=
|
||||
DB_NAME=wikijs
|
||||
DB_SSL=1
|
|
@ -1,19 +0,0 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: requarks/wiki
|
||||
restart: always
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
||||
env_file:
|
||||
- .env
|
||||
- .secret.env
|
||||
networks:
|
||||
apps:
|
||||
aliases:
|
||||
- wiki-js
|
||||
|
||||
networks:
|
||||
apps:
|
||||
external: true
|
Reference in a new issue