Skip to content

Instantly share code, notes, and snippets.

@dopetik
dopetik / README.md
Last active October 8, 2022 11:48 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit for non-root docker install

Create file ~/.config/systemd/user/[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