Skip to content

Instantly share code, notes, and snippets.

View johanblomgren's full-sized avatar
🎯
Focusing

Johan Blomgren johanblomgren

🎯
Focusing
  • Dermicus
  • Stockholm, Sverige
  • 10:57 (UTC +01:00)
View GitHub Profile
@mosquito
mosquito / README.md
Last active January 6, 2026 23:55
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. 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