Fixes to the conduit systemd config

This commit is contained in:
Charles Wright 2022-08-04 12:36:13 -05:00
parent 6be5672eac
commit a5476e1857

View file

@ -1,7 +1,10 @@
#jinja2: lstrip_blocks: "True" #jinja2: lstrip_blocks: "True"
[Unit] [Unit]
Description=Conduit Matrix homeserver Description=Conduit Matrix homeserver
After=network.target {% for service in matrix_conduit_systemd_required_services_list %}
Requires={{ service }}
After={{ service }}
{% endfor %}
[Service] [Service]
Type=simple Type=simple
@ -16,7 +19,6 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-conduit \
--read-only \ --read-only \
--tmpfs=/tmp:rw,noexec,nosuid,size={{ matrix_conduit_tmp_directory_size_mb }}m \ --tmpfs=/tmp:rw,noexec,nosuid,size={{ matrix_conduit_tmp_directory_size_mb }}m \
--network={{ matrix_docker_network }} \ --network={{ matrix_docker_network }} \
-p 8448:6167 \
--mount type=bind,src={{ matrix_conduit_config_dir_path }},dst=/etc/matrix-conduit,ro \ --mount type=bind,src={{ matrix_conduit_config_dir_path }},dst=/etc/matrix-conduit,ro \
--mount type=bind,src={{ matrix_conduit_data_dir_path }},dst=/var/lib/conduit \ --mount type=bind,src={{ matrix_conduit_data_dir_path }},dst=/var/lib/conduit \
{% for arg in matrix_conduit_container_extra_arguments %} {% for arg in matrix_conduit_container_extra_arguments %}