Skip to content

Commit aa0f94f

Browse files
committed
add ability to use watchtower widget on homepage
1 parent 53c4e35 commit aa0f94f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

services-available/watchtower.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
version: '3'
22

3+
networks:
4+
traefik:
5+
external: true
36

4-
# description: Utomatically updates docker containers
7+
# description: Automatically updates docker containers
58
# https://github.com/containrrr/watchtower
69
# https://containrrr.dev/watchtower/notifications/
710

@@ -10,6 +13,9 @@ services:
1013
image: ghcr.io/containrrr/watchtower:${WATCHTOWER_DOCKER_TAG:-latest}
1114
container_name: ${WATCHTOWER_CONTAINER_NAME:-watchtower}
1215
restart: ${WATCHTOWER_RESTART:-unless-stopped}
16+
# so homepage can talk to it directly
17+
networks:
18+
- traefik
1319
environment:
1420
- TZ=${TZ}
1521
- WATCHTOWER_NOTIFICATIONS_HOSTNAME=${WATCHTOWER_NOTIFICATIONS_HOSTNAME:-${HOST_NAME}.${HOST_DOMAIN}}
@@ -18,6 +24,7 @@ services:
1824
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
1925
- WATCHTOWER_SCHEDULE=${WATCHTOWER_SCHEDULE:-0 0 4 * * *}
2026
- WATCHTOWER_HTTP_API_METRICS=${WATCHTOWER_HTTP_API_METRICS:-false}
27+
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_HTTP_API_TOKEN:-watchtower_secret_token}
2128
- WATCHTOWER_CLEANUP=${WATCHTOWER_CLEANUP:-false}
2229
volumes:
2330
- /var/run/docker.sock:/var/run/docker.sock

0 commit comments

Comments
 (0)