computer-playbook/roles/native-docker-compose-restart-unhealthy/templates/docker-compose-restart-unhealthy.service.j2

8 lines
213 B
Django/Jinja

[Unit]
Description=restart unhealthy docker containers
OnFailure=systemd-email@%n.service
[Service]
Type=oneshot
ExecStart=/bin/bash {{docker_docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py