Initial commit
This commit is contained in:
commit
a297abb7ef
1
.env.example
Normal file
1
.env.example
Normal file
|
|
@ -0,0 +1 @@
|
|||
HOMEPAGE_VAR_WATCHTOWER_KEY=watchtowerApiKey
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.env
|
||||
19
docker-compose.yaml
Normal file
19
docker-compose.yaml
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue