15 lines
306 B
Django/Jinja
15 lines
306 B
Django/Jinja
[Unit]
|
|
Description=%i docker-compose service
|
|
PartOf=docker.service
|
|
After=docker.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
WorkingDirectory={{ docker_compose_root }}/%i
|
|
ExecStart={{ docker_compose }} up -d --remove-orphans
|
|
ExecStop={{ docker_compose }} down
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|