Make matrix-synapse-auto-compressor live in its own container network

It will, additionally, be connected to the devture-postgres network, if
devture-postgres is enabled.
This commit is contained in:
Slavi Pantaleev
2023-03-12 10:01:51 +02:00
parent 0f2e568b30
commit 26d5719df4
4 changed files with 29 additions and 2 deletions

View File

@ -3338,6 +3338,11 @@ matrix_synapse_auto_compressor_enabled: false
matrix_synapse_auto_compressor_container_image_self_build: "{{ matrix_architecture not in ['amd64'] }}"
matrix_synapse_auto_compressor_container_additional_networks: |
{{
([devture_postgres_container_network] if devture_postgres_enabled and devture_postgres_container_network != matrix_synapse_auto_compressor_container_network else [])
}}
matrix_synapse_auto_compressor_database_username: "{{ matrix_synapse_database_user if matrix_synapse_enabled else '' }}"
matrix_synapse_auto_compressor_database_password: "{{ matrix_synapse_database_password if matrix_synapse_enabled else '' }}"
matrix_synapse_auto_compressor_database_hostname: "{{ matrix_synapse_database_host if matrix_synapse_enabled else '' }}"