Optimized role structure in preparation for new backup script

This commit is contained in:
2025-07-16 12:31:01 +02:00
parent e56c960900
commit f9426cfb74
29 changed files with 217 additions and 82 deletions

View File

@@ -1,4 +1,4 @@
# Role: svc-db-redis
# Redis
## Description

View File

@@ -0,0 +1,7 @@
docker:
services:
redis:
image: redis
version: alpine
backup:
enabled: false

View File

@@ -1,8 +1,10 @@
# This template needs to be included in docker-compose.yml, which depend on redis
{% set redis_image = applications | get_app_conf('svc-db-redis', 'docker.services.redis.image') %}
{% set redis_version = applications | get_app_conf('svc-db-redis', 'docker.services.redis.version')%}
redis:
image: redis:alpine
container_name: {{application_id}}-redis
restart: {{docker_restart_policy}}
image: "{{ redis_image }}:{{ redis_version }}"
container_name: {{ application_id }}-redis
restart: {{ docker_restart_policy }}
logging:
driver: journald
volumes:

View File

@@ -1 +1 @@
application_id: redis
application_id: svc-db-redis