mirror of
https://github.com/luzifer-ansible/docker-compose.git
synced 2024-12-22 09:01:15 +00:00
Install latest docker-compose on a host and start it as a systemd service
Knut Ahlers
3087b329e5
Previously restarting docker.service (e.g. on an update) caused docker-compose to be shut down and not being restarted. This caused services started by docker-compose not to be started and the system to have no running containers. This fix chains docker-compose directly to docker and therefore systemd will start docker-compose when docker comes up again. Signed-off-by: Knut Ahlers <knut@ahlers.me> |
||
---|---|---|
defaults | ||
meta | ||
tasks | ||
templates | ||
History.md | ||
LICENSE | ||
README.md |
luzifer-ansible / docker-compose
This role installs latest docker-compose on a host and start it as a systemd daemon (it does not take care about installing Docker itself so this needs to be done before by some other role or external functionality.)
Requirements
- Debian >= 8 (jessie)
- Ubuntu >= 16.04 (xenial)
- Docker
Usage
See the Ansible Galaxy Intro for usage of roles within Ansible Galaxy.