Intersect apps_backup with apps_include

This commit is contained in:
Sam A. 2023-11-11 14:51:43 +01:00
parent 646bfa4e85
commit c816f3d551
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 1 additions and 3 deletions

View file

@ -56,7 +56,7 @@ apps_vars:
version: '1.6.0'
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list }}"
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list }}"
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
apps_sender_domains:

View file

@ -31,9 +31,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- "/usr/libexec/docker/cli-plugins/docker-compose:/usr/libexec/docker/cli-plugins/docker-compose:ro"
{% for app in apps_backup %}
{% if app in apps_include %}
- "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro"
{% endif %}
{% endfor %}
prune: