mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-04-27 10:54:39 +00:00
Upgrade meshtastic-relay (v1.2.8 -> v1.3.5) and adapt for MMRELAY_HOME
v1.3.0 moved the container's runtime paths to a unified MMRELAY_HOME=/data model (credentials, database, logs, E2EE store, plugins all live under /data). Legacy /app paths still work until v1.4. Adapted the role to the new model: drop the three `/app/*` bind mounts and the `_logs_path` variable, mount `_config_path` read-only at `/config` and `_data_path` read-write at `/data`, and invoke the container as `mmrelay --config /config/config.yaml` so the Ansible-managed config stays separate from runtime data. Also drop the hardcoded `/app/data/...` database and e2ee store_path overrides from the default config; MMRELAY_HOME defaults place them under `_data_path/database/` and `_data_path/matrix/store/` on the host.
This commit is contained in:
@@ -25,9 +25,8 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
|
||||
--read-only \
|
||||
--tmpfs=/tmp:rw,noexec,nosuid,size=50m \
|
||||
--tmpfs=/.cache:rw,noexec,nosuid,size=50m \
|
||||
--mount type=bind,src={{ matrix_meshtastic_relay_config_path }}/config.yaml,dst=/app/config.yaml,ro \
|
||||
--mount type=bind,src={{ matrix_meshtastic_relay_data_path }},dst=/app/data \
|
||||
--mount type=bind,src={{ matrix_meshtastic_relay_logs_path }},dst=/app/logs \
|
||||
--mount type=bind,src={{ matrix_meshtastic_relay_config_path }},dst=/config,ro \
|
||||
--mount type=bind,src={{ matrix_meshtastic_relay_data_path }},dst=/data \
|
||||
{% if matrix_meshtastic_relay_connection_type == 'ble' %}
|
||||
--network=host \
|
||||
--security-opt apparmor=unconfined \
|
||||
@@ -41,7 +40,8 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \
|
||||
{% for arg in matrix_meshtastic_relay_container_extra_arguments %}
|
||||
{{ arg }} \
|
||||
{% endfor %}
|
||||
{{ matrix_meshtastic_relay_container_image }}
|
||||
{{ matrix_meshtastic_relay_container_image }} \
|
||||
mmrelay --config /config/config.yaml
|
||||
|
||||
{% for network in matrix_meshtastic_relay_container_additional_networks %}
|
||||
ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-meshtastic-relay
|
||||
|
||||
Reference in New Issue
Block a user