computer-playbook/roles/heal-docker/templates/heal-docker.service.j2

8 lines
190 B
Django/Jinja

[Unit]
Description=restart unhealthy docker containers
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/bin/python {{docker_compose_restart_unhealthy}}heal-docker.py