servercontainers/recipes/on-healthcheck-failed.sh
2022-04-27 14:48:32 +02:00

6 lines
145 B
Bash
Executable File

docker ps -f name=mealie --format "{{.Status}}" | grep "unhealthy";
if [ $? -eq 0 ]; then
docker-compose down; docker-compose up -d --build;
fi