|
|
|
@@ -8,6 +8,9 @@ container_id=$(\ |
|
|
|
--env-file={{ matrix_synapse_ext_s3_storage_provider_base_path }}/env \ |
|
|
|
--mount type=bind,src={{ matrix_synapse_storage_path }},dst=/matrix-media-store-parent,bind-propagation=slave \ |
|
|
|
--mount type=bind,src={{ matrix_synapse_ext_s3_storage_provider_data_path }},dst=/data \ |
|
|
|
{% if matrix_synapse_database_socket_enabled %} |
|
|
|
--mount type=bind,src={{ matrix_synapse_database_socket_path_host }},dst={{ matrix_synapse_database_socket_path }} \ |
|
|
|
{% endif %} |
|
|
|
--workdir=/data \ |
|
|
|
--network={{ matrix_synapse_container_network }} \ |
|
|
|
--entrypoint=/bin/bash \ |
|
|
|
@@ -18,7 +21,7 @@ container_id=$(\ |
|
|
|
-c 's3_media_upload update-db $UPDATE_DB_DURATION && s3_media_upload --no-progress check-deleted $MEDIA_PATH && s3_media_upload --no-progress upload $MEDIA_PATH $BUCKET --delete --storage-class $STORAGE_CLASS --endpoint-url $ENDPOINT {% if matrix_synapse_ext_synapse_s3_storage_provider_config_prefix %}--prefix $PREFIX {% endif %}{% if matrix_synapse_ext_synapse_s3_storage_provider_config_sse_customer_enabled %}--sse-customer-algo $SSE_CUSTOMER_ALGO --sse-customer-key $SSE_CUSTOMER_KEY{% endif %}' \ |
|
|
|
) |
|
|
|
|
|
|
|
{# We need to connect to the Postgres network, which should be in this list. #} |
|
|
|
{# Additional container networks (for example, Postgres) should be connected here when needed. #} |
|
|
|
{% for network in matrix_synapse_container_additional_networks %} |
|
|
|
{{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} $container_id |
|
|
|
{% endfor %} |
|
|
|
|