mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2025-03-04 14:47:18 +00:00
allow more mounts for docker container
This commit is contained in:
parent
06a91c9c1e
commit
4a83baf175
3 changed files with 9 additions and 6 deletions
|
@ -13,4 +13,5 @@ matrix_synapse_log_days_keep: 30
|
|||
matrix_synapse_pid_file: "{{ matrix_synapse_base_path }}/synapse.pid"
|
||||
matrix_synapse_docker_ports: ["8008:8008", "8448:8448"]
|
||||
matrix_synapse_docker_labels: {}
|
||||
matrix_synapse_extra_docker_volumes: []
|
||||
matrix_synapse_container_ref: "docker.io/matrixdotorg/synapse"
|
||||
|
|
|
@ -69,10 +69,5 @@
|
|||
- "-c"
|
||||
- "{{ matrix_synapse_base_path }}/homeserver.yaml"
|
||||
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
|
||||
volumes:
|
||||
- "{{ matrix_synapse_config.media_store_path }}:{{ matrix_synapse_config.media_store_path }}"
|
||||
- "{{ matrix_synapse_config.uploads_path }}:{{ matrix_synapse_config.uploads_path }}"
|
||||
- "{{ matrix_synapse_base_path }}/homeserver.yaml:{{ matrix_synapse_base_path }}/homeserver.yaml"
|
||||
- "{{ matrix_synapse_base_path }}/log.config:{{ matrix_synapse_base_path }}/log.config"
|
||||
- "{{ matrix_synapse_base_path }}/tls:{{ matrix_synapse_base_path }}/tls"
|
||||
volumes: "{{ matrix_synapse_docker_volumes }}"
|
||||
when: matrix_synapse_deployment_method == "docker"
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
---
|
||||
matrix_synapse_docker_volumes: "{{ matrix_synapse_base_docker_volumes + matrix_synapse_extra_docker_volumes }}"
|
||||
matrix_synapse_base_docker_volumes:
|
||||
- "{{ matrix_synapse_config.media_store_path }}:{{ matrix_synapse_config.media_store_path }}"
|
||||
- "{{ matrix_synapse_config.uploads_path }}:{{ matrix_synapse_config.uploads_path }}"
|
||||
- "{{ matrix_synapse_base_path }}/homeserver.yaml:{{ matrix_synapse_base_path }}/homeserver.yaml"
|
||||
- "{{ matrix_synapse_base_path }}/log.config:{{ matrix_synapse_base_path }}/log.config"
|
||||
- "{{ matrix_synapse_base_path }}/tls:{{ matrix_synapse_base_path }}/tls"
|
||||
matrix_synapse_config: "{{ matrix_synapse_base_config | combine(matrix_synapse_extra_config, recursive=True) }}"
|
||||
matrix_synapse_base_config:
|
||||
server_name: "{{ matrix_server_name }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue