Tyleo-Scripts/irp-dockerupd-prod

24 lines
891 B
Text
Raw Normal View History

2024-02-18 18:06:30 +00:00
echo "------------------------------------------------"
echo "- Docker Production Server Updater --- 1.0.0.0 -"
echo "- Image : containrrr/watchtower / Production ---"
echo "------------------------------------------------"
docker stop prd-updater
sleep 1
echo "------------------------------------------------"
docker kill prd-updater
sleep 1
echo "------------------------------------------------"
docker rm prd-updater
sleep 1
echo "------------------------------------------------"
docker run -d \
--name prd-updater \
-e WATCHTOWER_CLEANUP=true \
-e WATCHTOWER_DEBUG=true \
-e WATCHTOWER_SCHEDULE="0 0 * * *" \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower:latest
echo "------------------------------------------------"
echo " Terminé. Service Actif en tant que prd-updater"
echo "------------------------------------------------"
echo ""