Skip to content

Instantly share code, notes, and snippets.

View boonchu's full-sized avatar
🏠
Working from home

Boonchu boonchu

🏠
Working from home
View GitHub Profile
@mosquito
mosquito / README.md
Last active April 27, 2024 00:07
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
PartOf=docker.service
After=docker.service