mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
feat(redis): allow mounting extra container volumes
This commit is contained in:
parent
834bc9a9d7
commit
022cbbca6f
2 changed files with 6 additions and 2 deletions
|
@ -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 }}"
|
||||
|
||||
|
|
|
@ -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) }}"
|
||||
|
|
Loading…
Reference in a new issue