[Unit] Description=Element Web with Docker After=docker.service Requires=docker.service [Service] ExecStartPre=-/usr/bin/docker rm --force {{ container_names.element_web.element_web }} ExecStart=/usr/bin/docker run --rm --name {{ container_names.element_web.element_web }} \ --network nginx_net --env-file {{ docker_volumes_dir }}/element_web/element_web.env \ -v {{ docker_volumes_dir }}/element/config/config.json:/app/config.json:ro \ -v {{ docker_volumes_dir }}/element/config/unhb.png:/app/unhb.png:ro \ vectorim/element-web:{{ version.element_web }} ExecStop=-/usr/bin/docker stop {{ container_names.element_web.element_web }} Restart=always RestartSec=60s TimeoutRestartSec=60s Type=exec [Install] WantedBy=multi-user.target