Add webdis to ansible

This commit is contained in:
Tobias Reisinger 2023-12-04 19:02:08 +01:00
parent afe85702a6
commit 24ca76cd60
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 42 additions and 29 deletions

2
.gitignore vendored
View file

@ -15,6 +15,7 @@ diagram_assets/
/umami/
/uptime-kuma/
/watchtower/
/webdis/
/wiki-js/
/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/tick.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

View file

@ -12,4 +12,5 @@
- umami
- uptime-kuma
- watchtower
- webdis
- wiki-js

View 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

View 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:

View file

@ -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