Feat: Add Watchtower for auto-updates and update.bat script
This commit is contained in:
parent
5e77d799e1
commit
b67dbe577d
2 changed files with 19 additions and 0 deletions
|
|
@ -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
11
update.bat
Normal 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
|
||||
Loading…
Reference in a new issue