[Unit]
Description=co-docker - start docker instances via docker-compose
Requires=docker.service
After=docker.service
PartOf=docker.service
[Service]
Restart=on-failure
WorkingDirectory=/opt/co-docker/%i
ExecStart=/usr/bin/docker-compose up
ExecStop=/usr/bin/docker-compose stop
[Install]
WantedBy=multi-user.target