Add webdis service

This commit is contained in:
Tobias Reisinger 2025-01-31 02:48:53 +01:00
parent 57fe2ed42c
commit a27a157e22
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
"redis_host": "redis",
"redis_port": 6379,
"redis_auth": null,
"http_host": "0.0.0.0",
"http_port": 7379,
"threads": 5,
"pool_size": 20,
"daemonize": false,
"websockets": false,
"database": 0,
"acl": [
{
"disabled": ["DEBUG"]
},
{
"http_basic_auth": "user:password",
"enabled": ["DEBUG"]
}
],
"verbosity": 4,
"logfile": "/dev/stderr"
}

View file

@ -0,0 +1,20 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ role_name }}
vars:
svc: "{{ webdis_svc }}"
compose: "{{ webdis_compose }}"
block:
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
- name: Copy the config
ansible.builtin.copy:
src: webdis.json
dest: "{{ (service_path, 'webdis.json') | path_join }}"
mode: "0755"
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml

View file

@ -0,0 +1,23 @@
---
webdis_svc:
domain: "{{ all_services | service_get_domain(role_name) }}"
port: 7379
webdis_compose:
watchtower: update
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:
default:

View file

@ -681,6 +681,20 @@ services = {
mail = "watchtower"
},
"webdis" = {
host = "node001"
dns = [{
domain = "webdis.huck.serguzim.me"
}]
monitoring = {
url = "/info"
group = "4-services"
}
auth = false
database = false
s3 = false
},
"wiki_js" = {
host = "node001"
dns = [{

View file

@ -20,6 +20,7 @@ icon_overrides = {
"tandoor": "tandoor-recipes",
"teamspeak_fallback": None,
"tinytinyrss": "tiny-tiny-rss",
"webdis": "redis",
"wiki_js": "wiki-js",
"woodpecker": None,
}