From b67dbe577d2371e079eb56e22b9fa4566c7db03c Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 1 Jan 2026 13:52:21 +0700 Subject: [PATCH] Feat: Add Watchtower for auto-updates and update.bat script --- docker-compose.yml | 8 ++++++++ update.bat | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 update.bat diff --git a/docker-compose.yml b/docker-compose.yml index 73dc99b..3ba9c92 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,3 +9,11 @@ services: volumes: - ./data:/app/backend/data + + watchtower: + image: containrrr/watchtower + container_name: watchtower + volumes: + - /var/run/docker.sock:/var/run/docker.sock + command: --interval 3600 --cleanup --label-enable=false spotify-clone # Checks every hour for 'spotify-clone' container + restart: always diff --git a/update.bat b/update.bat new file mode 100644 index 0000000..4e41a1f --- /dev/null +++ b/update.bat @@ -0,0 +1,11 @@ +@echo off +echo Updating Spotify Clone... + +:: Pull the latest image +docker-compose pull + +:: Recreate the container +docker-compose up -d + +echo Update complete! +pause