From 782f1f5b1c6dd09b02864ac5f9ed28531706e05b Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 13 Jan 2024 17:42:01 +0200 Subject: [PATCH] Run postgres-backup in its own container network (not in matrix_docker_network) --- group_vars/matrix_servers | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index a53e91c10..449d7bd8c 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -3860,14 +3860,15 @@ devture_postgres_backup_architecture: "{{ matrix_architecture }}" devture_postgres_backup_base_path: "{{ matrix_base_data_path }}/postgres-backup" -devture_postgres_backup_systemd_required_services_list: | +devture_postgres_backup_systemd_required_services_list_auto: | {{ - (['docker.service']) - + - ([(devture_postgres_identifier + '.service')] if devture_postgres_enabled else []) + ([(devture_postgres_identifier + '.service')] if (devture_postgres_enabled and devture_postgres_backup_connection_hostname == devture_postgres_connection_hostname) else []) }} -devture_postgres_backup_container_network: "{{ matrix_docker_network }}" +devture_postgres_backup_container_additional_networks_auto: |- + {{ + ([devture_postgres_container_network] if (devture_postgres_enabled and devture_postgres_backup_connection_hostname == devture_postgres_connection_hostname and devture_postgres_backup_container_network != devture_postgres_container_network) else []) + }} devture_postgres_backup_uid: "{{ matrix_user_uid }}" devture_postgres_backup_gid: "{{ matrix_user_gid }}"