23 lines
615 B
Plaintext
23 lines
615 B
Plaintext
|
#jinja2:lstrip_blocks: True
|
||
|
{{ ansible_managed | comment }}
|
||
|
[Unit]
|
||
|
Description=TT-RSS news feed reader
|
||
|
Requires=docker.service network-online.target
|
||
|
After=docker.service network-online.target
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory={{ freshrss_service_directory }}
|
||
|
Type=simple
|
||
|
TimeoutStartSec=15min
|
||
|
Restart={{ freshrss_restart_policy }}
|
||
|
|
||
|
ExecStartPre=/bin/docker-compose pull --quiet --ignore-pull-failures
|
||
|
ExecStart=/usr/bin/docker-compose up --remove-orphans
|
||
|
|
||
|
ExecStop=/usr/bin/docker-compose down --remove-orphans
|
||
|
|
||
|
ExecReload=/usr/bin/docker-compose pull --quiet --ignore-pull-failures
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|