feat(redis): allow mounting extra container volumes

This commit is contained in:
Johanna Dorothea Reichmann 2021-11-01 09:07:58 +01:00
parent 834bc9a9d7
commit 022cbbca6f
No known key found for this signature in database
GPG key ID: 03624C433676E465
2 changed files with 6 additions and 2 deletions

View file

@ -27,5 +27,4 @@ redis_docker_ports: [ "6379:6379" ]
redis_docker_networks: ~
redis_docker_purge_networks: false
redis_docker_volumes:
- "{{ redis_data_dir }}:/data"
- "{{ redis_config_file }}:{{ redis_docker_configpath }}"

View file

@ -1,5 +1,10 @@
---
redis_docker_volumes_base:
- "{{ redis_data_dir }}:/data"
- "{{ redis_config_file }}:{{ redis_docker_configpath }}"
redis_docker_volumes: "{{ redis_docker_volumes_base + redis_docker_extra_volumes|default([]) }}"
redis_docker_labels_base:
version: "{{ redis_version }}"
redis_docker_labels_complete: "{{ redis_docker_labels_base | combine(redis_docker_labels) }}"