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.
 
 
 

34 lines
1.3 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. [Unit]
  3. Description=Matrix jitsi-jicofo server
  4. {% for service in matrix_jitsi_jicofo_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-jicofo 2>/dev/null'
  13. ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-jitsi-jicofo 2>/dev/null'
  14. ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-jitsi-jicofo \
  15. --log-driver=none \
  16. --network={{ matrix_docker_network }} \
  17. --env-file={{ matrix_jitsi_jicofo_base_path }}/env \
  18. --mount type=bind,src={{ matrix_jitsi_jicofo_config_path }},dst=/config \
  19. {% for arg in matrix_jitsi_jicofo_container_extra_arguments %}
  20. {{ arg }} \
  21. {% endfor %}
  22. {{ matrix_jitsi_jicofo_docker_image }}
  23. ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-jitsi-jicofo 2>/dev/null'
  24. ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-jitsi-jicofo 2>/dev/null'
  25. Restart=always
  26. RestartSec=30
  27. SyslogIdentifier=matrix-jitsi-jicofo
  28. [Install]
  29. WantedBy=multi-user.target