Skip to content

Commit 912efc5

Browse files
committed
Fix Watchtower crash by removing custom notification template
1 parent 206d4b2 commit 912efc5

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

.env

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# you MUST generate new ones in your provider dashboards.
44

55
# Get a new key from https://aistudio.google.com/
6-
GEMINI_API_KEY=PASTE_YOUR_NEW_GEMINI_API_KEY_HERE
7-
6+
GEMINI_API_KEY=AIzaSyCLU7z9gAJk5JFULn9G-Q_QU_znUFEdb1s
87
# Generate a new Discord Webhook or use the notification URL format for Watchtower
9-
DISCORD_WEBHOOK_URL=PASTE_YOUR_NEW_DISCORD_WEBHOOK_URL_HERE
10-
8+
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1382628884939276318/FCKBNh9e3wBVOQn2S84jrA_lKcr4vIwYKLinPnO1BqluDjtRmjF2jg0OkWPoA_W3n4IY
119
# Format for Watchtower: discord://TOKEN@ID
12-
WATCHTOWER_NOTIFICATION_URL=discord://PASTE_TOKEN@PASTE_ID
13-
10+
WATCHTOWER_NOTIFICATION_URL=discord://FCKBNh9e3wBVOQn2S84jrA_lKcr4vIwYKLinPnO1BqluDjtRmjF2jg0OkWPoA_W3n4IY@1382628884939276318
1411
# Password for the Suno Song Compliance Tool
1512
COMMITTEE_PASSWORD=SSC_Committee_Access_2024!
13+
GITHUB_USERNAME=your_github_username
14+
GITHUB_TOKEN=your_github_token

docker-compose.prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ services:
3636
container_name: watchtower
3737
restart: unless-stopped
3838
environment:
39-
- WATCHTOWER_POLL_INTERVAL=3600
39+
- WATCHTOWER_POLL_INTERVAL=1800
4040
- WATCHTOWER_CLEANUP=true
4141
- WATCHTOWER_LABEL_ENABLE=true
42+
- WATCHTOWER_NOTIFICATIONS=shoutrrr
43+
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
4244
- WATCHTOWER_NOTIFICATION_REPORT=true
4345
- WATCHTOWER_NOTIFICATION_TITLE_TAG=Watchtower
44-
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
45-
- WATCHTOWER_NOTIFICATION_MESSAGE_TEMPLATE=Container {{.Container.Name}} has been updated from {{.Container.ImageName}}:{{.Container.ImageTag}} to {{.Image.ImageName}}:{{.Image.ImageTag}}
4646
# GHCR Authentication for private images
4747
- WATCHTOWER_REPO_USER=${GITHUB_USERNAME}
4848
- WATCHTOWER_REPO_PASS=${GITHUB_TOKEN}

docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
- COMMITTEE_PASSWORD=${COMMITTEE_PASSWORD}
2222
networks:
2323
- music-ai-network
24+
labels:
25+
- "com.centurylinklabs.watchtower.enable=true"
2426

2527
cors-proxy:
2628
build:
@@ -32,6 +34,24 @@ services:
3234
restart: unless-stopped
3335
networks:
3436
- music-ai-network
37+
labels:
38+
- "com.centurylinklabs.watchtower.enable=true"
39+
40+
watchtower:
41+
image: nickfedor/watchtower:latest
42+
container_name: watchtower
43+
restart: unless-stopped
44+
environment:
45+
- WATCHTOWER_POLL_INTERVAL=1800 # 30 minutes
46+
- WATCHTOWER_CLEANUP=true
47+
- WATCHTOWER_LABEL_ENABLE=true
48+
- WATCHTOWER_DEBUG=true
49+
- WATCHTOWER_NOTIFICATIONS=shoutrrr
50+
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
51+
volumes:
52+
- /var/run/docker.sock:/var/run/docker.sock
53+
networks:
54+
- music-ai-network
3555

3656
networks:
3757
music-ai-network:

0 commit comments

Comments
 (0)