Docker-compose systemd integration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
maze 8b87f4ce62 Initial import 1 year ago
LICENSE Initial commit 1 year ago
README.md Initial import 1 year ago
docker-compose@.service Initial import 1 year ago

README.md

systemd

Docker-compose systemd integration

Requirements

Well, you might have guessed, this is for systemd.

Installation

On Arch Linux:

  • Copy docker-compose@.service to /usr/lib/systemd/system/docker-compose@.service

On Debian Linux:

  • Copy docker-compose@.service to /lib/systemd/system/docker-compose@.service

Running docker-compose configurations

All configurations are expected to live in /etc/compose/<name>/docker-compose.yml.

To enable a service:

user@box:~$ sudo systemctl enable docker-compose@name.service
Created symlink /etc/systemd/system/multi-user.target.wants/docker-compose@name.service → /usr/lib/systemd/system/docker-compose@.service.

To start a service:

user@box:~$ sudo systemctl start docker-compose@name.service

To stop a service:

user@box:~$ sudo systemctl stop docker-compose@name.service

To restart a service:

user@box:~$ sudo systemctl restart docker-compose@name.service