Feat: Add Watchtower for auto-updates and update.bat script

This commit is contained in:
Your Name 2026-01-01 13:52:21 +07:00
parent 5e77d799e1
commit b67dbe577d
2 changed files with 19 additions and 0 deletions

View file

@ -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

11
update.bat Normal file
View file

@ -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