Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

26 行
775 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. --log-driver=none \
  11. -v {{ matrix_riot_web_data_path }}/config.json:/etc/riot-web/config.json:ro \
  12. -v {{ matrix_riot_web_data_path }}/home.html:/etc/riot-web/home.html:ro \
  13. --network={{ matrix_docker_network }} \
  14. {% if not matrix_nginx_proxy_enabled %}
  15. -p 127.0.0.1:8765:80 \
  16. {% endif %}
  17. {{ matrix_riot_web_docker_image }}
  18. ExecStop=-/usr/bin/docker kill matrix-riot-web
  19. ExecStop=-/usr/bin/docker rm matrix-riot-web
  20. Restart=always
  21. RestartSec=30
  22. [Install]
  23. WantedBy=multi-user.target