commit a297abb7efb05796e558a4f429a779f53de6eea1 Author: georgew Date: Sun Jan 25 16:17:01 2026 +0000 Initial commit diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..9b2f8cb --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +HOMEPAGE_VAR_WATCHTOWER_KEY=watchtowerApiKey diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..c761281 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,19 @@ +services: + watchtower: + image: containrrr/watchtower + container_name: watchtower + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + env_file: + - ./.env # The HOMEPAGE_VAR_WATCHTOWER_KEY is taken from the homepage .env + environment: + # This tells Watchtower to clean up old images after updating + - WATCHTOWER_CLEANUP=true + # This sets how often to check for updates (in seconds). 86400 = 24 hours. + - WATCHTOWER_POLL_INTERVAL=86400 + - DOCKER_API_VERSION=1.44 + - WATCHTOWER_HTTP_API_METRICS=true # Required for the widget + - WATCHTOWER_HTTP_API_TOKEN=${HOMEPAGE_VAR_WATCHTOWER_KEY} + ports: + - 8080:8080