Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 rivejä
1.5 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. [Unit]
  3. Description=Matrix jitsi-web server
  4. {% for service in matrix_jitsi_web_systemd_required_services_list %}
  5. Requires={{ service }}
  6. After={{ service }}
  7. {% endfor %}
  8. DefaultDependencies=no
  9. [Service]
  10. Type=simple
  11. Environment="HOME={{ matrix_systemd_unit_home_path }}"
  12. ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-jitsi-web 2>/dev/null'
  13. ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-jitsi-web 2>/dev/null'
  14. ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-jitsi-web \
  15. --log-driver=none \
  16. --network={{ matrix_docker_network }} \
  17. --env-file={{ matrix_jitsi_web_base_path }}/env \
  18. {% if matrix_jitsi_web_container_http_host_bind_port %}
  19. -p {{ matrix_jitsi_web_container_http_host_bind_port }}:80 \
  20. {% endif %}
  21. --mount type=bind,src={{ matrix_jitsi_web_config_path }},dst=/config \
  22. --mount type=bind,src={{ matrix_jitsi_web_transcripts_path }},dst=/usr/share/jitsi-meet/transcripts \
  23. {% for arg in matrix_jitsi_web_container_extra_arguments %}
  24. {{ arg }} \
  25. {% endfor %}
  26. {{ matrix_jitsi_web_docker_image }}
  27. ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-jitsi-web 2>/dev/null'
  28. ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-jitsi-web 2>/dev/null'
  29. Restart=always
  30. RestartSec=30
  31. SyslogIdentifier=matrix-jitsi-web
  32. [Install]
  33. WantedBy=multi-user.target