summarylogtreecommitdiffstats
path: root/docker-compose@.service
blob: 85a90beec69244fb83f22617a16b708488b7f21d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[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