matrix-ntfy: persist cache on disk

This commit is contained in:
Julian Foad
2022-07-02 17:35:53 +01:00
parent 763586e878
commit 3866fff5a8
4 changed files with 14 additions and 1 deletions

View File

@ -23,6 +23,8 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-ntfy \
{% if matrix_ntfy_container_http_host_bind_port %}
-p {{ matrix_ntfy_container_http_host_bind_port }}:80 \
{% endif %}
--mount type=bind,src={{ matrix_ntfy_data_path }},dst=/data \
--env NTFY_CACHE_FILE=/data/cache.db \
--env NTFY_BASE_URL=https://{{ matrix_server_fqn_ntfy }} \
{{ matrix_ntfy_docker_image }} \
serve --behind-proxy