14 lines
310 B
SYSTEMD
14 lines
310 B
SYSTEMD
|
[Unit]
|
||
|
Description=%i service with docker compose
|
||
|
PartOf=docker.service
|
||
|
After=docker.service
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=true
|
||
|
WorkingDirectory=/etc/docker/compose/%i
|
||
|
ExecStart=/usr/bin/docker compose up -d --remove-orphans
|
||
|
ExecStop=/usr/bin/docker compose down
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|