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.
 
 

23 line
597 B

  1. [Unit]
  2. Description=Matrix Riot web server
  3. After=docker.service
  4. Requires=docker.service
  5. [Service]
  6. Type=simple
  7. ExecStartPre=-/usr/bin/docker kill matrix-riot-web
  8. ExecStartPre=-/usr/bin/docker rm matrix-riot-web
  9. ExecStart=/usr/bin/docker run --rm --name matrix-riot-web \
  10. -v {{ matrix_nginx_riot_web_data_path }}:/data:ro \
  11. {% if not matrix_nginx_proxy_enabled %}
  12. -p 127.0.0.1:8765:8765 \
  13. {% endif %}
  14. {{ docker_riot_image }}
  15. ExecStop=-/usr/bin/docker kill matrix-riot-web
  16. ExecStop=-/usr/bin/docker rm matrix-riot-web
  17. Restart=always
  18. RestartSec=30
  19. [Install]
  20. WantedBy=multi-user.target