1
Files
ansible-role-docker/templates/watchtower/docker-compose@watchtower.service

15 lines
294 B
Desktop File

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/opt/docker/watchtower
ExecStart=/usr/bin/docker-compose up -d
ExecStop=/usr/bin/docker-compose down
[Install]
WantedBy=multi-user.target