xoxys.vaultwarden_docker/templates/etc/systemd/system/bitwardenrs.service.j2

23 lines
682 B
Plaintext
Raw Normal View History

2020-01-17 21:00:14 +00:00
#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
2020-02-01 16:54:55 +00:00
Description=Bitwarden API server in Rust
2020-01-17 21:00:14 +00:00
Requires=docker.service network-online.target
After=docker.service network-online.target
[Service]
WorkingDirectory={{ bitwardenrs_service_directory }}
Type=simple
TimeoutStartSec=15min
Restart={{ bitwardenrs_restart_policy }}
ExecStartPre={{ bitwardenrs_docker_compose_bin }} pull --quiet --ignore-pull-failures
ExecStart={{ bitwardenrs_docker_compose_bin }} up --remove-orphans
ExecStop={{ bitwardenrs_docker_compose_bin }} down --remove-orphans
ExecReload={{ bitwardenrs_docker_compose_bin }} pull --quiet --ignore-pull-failures
[Install]
WantedBy=multi-user.target