compose-website/unit-files/ssh-backup.service
2015-10-16 13:09:05 +01:00

21 lines
381 B
Desktop File

[Unit]
Description=%p-%i
# Requirements
Requires=docker.service
# Dependency ordering
After=docker.service
[Service]
Restart=always
RestartSec=10
TimeoutStartSec=60
TimeoutStopSec=15
WorkingDirectory=/media/diskb/backup/
ExecStartPre=-/opt/bin/docker-compose rm -f
ExecStart=/opt/bin/docker-compose up
ExecStop=/opt/bin/docker-compose stop
[Install]
WantedBy=multi-user.target