mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized role structure in preparation for new backup script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Role: svc-db-redis
|
||||
# Redis
|
||||
|
||||
## Description
|
||||
|
||||
|
7
roles/svc-db-redis/config/main.yml
Normal file
7
roles/svc-db-redis/config/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
docker:
|
||||
services:
|
||||
redis:
|
||||
image: redis
|
||||
version: alpine
|
||||
backup:
|
||||
enabled: false
|
@@ -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:
|
||||
|
@@ -1 +1 @@
|
||||
application_id: redis
|
||||
application_id: svc-db-redis
|
Reference in New Issue
Block a user