Skip to content

Instantly share code, notes, and snippets.

View Zyzto's full-sized avatar
💭
Living I guess

Zyzto

💭
Living I guess
View GitHub Profile
@Zyzto
Zyzto / README.md
Created April 6, 2021 10:36 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service