miniNAS/systemd/docker-compose@.service

14 lines
316 B
INI
Raw Permalink Normal View History

2021-12-26 16:23:16 +01:00
[Unit]
Description=%i service with docker compose
Requires=snap.docker.dockerd.service
After=snap.docker.dockerd.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/etc/compose/%i
ExecStart=/snap/bin/docker-compose up -d
ExecStop=/snap/bin/docker-compose down
[Install]
WantedBy=multi-user.target