Skip to content

Commit

Permalink
add ability to use watchtower widget on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Apr 11, 2024
1 parent 53c4e35 commit aa0f94f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion services-available/watchtower.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
version: '3'

networks:
traefik:
external: true

# description: Utomatically updates docker containers
# description: Automatically updates docker containers
# https://github.com/containrrr/watchtower
# https://containrrr.dev/watchtower/notifications/

Expand All @@ -10,6 +13,9 @@ services:
image: ghcr.io/containrrr/watchtower:${WATCHTOWER_DOCKER_TAG:-latest}
container_name: ${WATCHTOWER_CONTAINER_NAME:-watchtower}
restart: ${WATCHTOWER_RESTART:-unless-stopped}
# so homepage can talk to it directly
networks:
- traefik
environment:
- TZ=${TZ}
- WATCHTOWER_NOTIFICATIONS_HOSTNAME=${WATCHTOWER_NOTIFICATIONS_HOSTNAME:-${HOST_NAME}.${HOST_DOMAIN}}
Expand All @@ -18,6 +24,7 @@ services:
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
- WATCHTOWER_SCHEDULE=${WATCHTOWER_SCHEDULE:-0 0 4 * * *}
- WATCHTOWER_HTTP_API_METRICS=${WATCHTOWER_HTTP_API_METRICS:-false}
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_HTTP_API_TOKEN:-watchtower_secret_token}
- WATCHTOWER_CLEANUP=${WATCHTOWER_CLEANUP:-false}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand Down

0 comments on commit aa0f94f

Please sign in to comment.