Add webdis to ansible
This commit is contained in:
parent
afe85702a6
commit
24ca76cd60
6 changed files with 42 additions and 29 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -15,6 +15,7 @@ diagram_assets/
|
||||||
/umami/
|
/umami/
|
||||||
/uptime-kuma/
|
/uptime-kuma/
|
||||||
/watchtower/
|
/watchtower/
|
||||||
|
/webdis/
|
||||||
/wiki-js/
|
/wiki-js/
|
||||||
|
|
||||||
/caddy/config/conf.002.d/acme.serguzim.me.conf
|
/caddy/config/conf.002.d/acme.serguzim.me.conf
|
||||||
|
@ -24,4 +25,5 @@ diagram_assets/
|
||||||
/caddy/config/conf.002.d/inventory.serguzim.me.conf
|
/caddy/config/conf.002.d/inventory.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/tick.serguzim.me.conf
|
/caddy/config/conf.002.d/tick.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/status.serguzim.me.conf
|
/caddy/config/conf.002.d/status.serguzim.me.conf
|
||||||
|
/caddy/config/conf.002.d/webdis.huck.serguzim.me.conf
|
||||||
/caddy/config/conf.002.d/wiki.serguzim.me.conf
|
/caddy/config/conf.002.d/wiki.serguzim.me.conf
|
||||||
|
|
|
@ -12,4 +12,5 @@
|
||||||
- umami
|
- umami
|
||||||
- uptime-kuma
|
- uptime-kuma
|
||||||
- watchtower
|
- watchtower
|
||||||
|
- webdis
|
||||||
- wiki-js
|
- wiki-js
|
||||||
|
|
14
_ansible/roles/webdis/tasks/main.yml
Normal file
14
_ansible/roles/webdis/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
- name: Deploy {{ svc.name }}
|
||||||
|
tags:
|
||||||
|
- webdis
|
||||||
|
block:
|
||||||
|
- import_tasks: steps/create-service-directory.yml
|
||||||
|
|
||||||
|
- name: Copy the config
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: webdis.json
|
||||||
|
dest: "{{ (service_path, 'webdis.json') | path_join }}"
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- import_tasks: deploy-common-service.yml
|
25
_ansible/roles/webdis/vars/main.yml
Normal file
25
_ansible/roles/webdis/vars/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
svc:
|
||||||
|
name: webdis
|
||||||
|
domain: "webdis.huck.serguzim.me"
|
||||||
|
port: 7379
|
||||||
|
|
||||||
|
compose:
|
||||||
|
watchtower: true
|
||||||
|
image: nicolas/webdis
|
||||||
|
volumes:
|
||||||
|
- ./webdis.json:/config/webdis.json
|
||||||
|
file:
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
command: /usr/local/bin/webdis /config/webdis.json
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
redis:
|
||||||
|
image: redis:6.2.6
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
networks:
|
||||||
|
local-net:
|
||||||
|
networks:
|
||||||
|
local-net:
|
|
@ -1,29 +0,0 @@
|
||||||
services:
|
|
||||||
webdis:
|
|
||||||
image: nicolas/webdis:latest
|
|
||||||
restart: always
|
|
||||||
labels:
|
|
||||||
com.centurylinklabs.watchtower.enable: true
|
|
||||||
command: /usr/local/bin/webdis /config/webdis.json
|
|
||||||
volumes:
|
|
||||||
- ./webdis.json:/config/webdis.json
|
|
||||||
networks:
|
|
||||||
local-net:
|
|
||||||
apps:
|
|
||||||
aliases:
|
|
||||||
- webdis
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:6.2.6
|
|
||||||
restart: always
|
|
||||||
labels:
|
|
||||||
com.centurylinklabs.watchtower.enable: true
|
|
||||||
networks:
|
|
||||||
local-net:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
local-net:
|
|
||||||
apps:
|
|
||||||
external: true
|
|
Reference in a new issue