mirror of
https://github.com/driftywinds/driftywinds.git
synced 2025-12-18 18:23:16 +00:00
Create compose.yml
This commit is contained in:
40
docker-compose-files/watchtower/compose.yml
Normal file
40
docker-compose-files/watchtower/compose.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: "3"
|
||||
secrets:
|
||||
access_token:
|
||||
file: access_token
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
restart: unless-stopped
|
||||
secrets:
|
||||
- access_token
|
||||
environment:
|
||||
- TZ=Asia/Kolkata
|
||||
# remove old images after update (useful for saving space)
|
||||
- WATCHTOWER_CLEANUP=true
|
||||
# the below will ignore labels set. It is worth checking out labels as that can be a more scalabe solution (automatic)
|
||||
- WATCHTOWER_DISABLE_CONTAINERS=immich_server bymr-web-1 # traefik crowdsec bouncer-traefik deconz frigate home-assistant homeassistant-db
|
||||
- WATCHTOWER_WARN_ON_HEAD_FAILURE=never
|
||||
#- WATCHTOWER_WARN_ON_HEAD_FAILURE="never"
|
||||
# the docker host can also be remote by specifying tcp
|
||||
# - DOCKER_HOST=tcp://hostname:port
|
||||
# how frequently to check for images (default is 24 hours)
|
||||
# - WATCHTOWER_POLL_INTERVAL=86400
|
||||
# choose whether to restart the containers after updates
|
||||
# - WATCHTOWER_INCLUDE_RESTARTING=true
|
||||
# choose whether to update stopped and exited containers
|
||||
# - WATCHTOWER_INCLUDE_STOPPED=true
|
||||
# this will start containers that were stopped or exited if they are updated
|
||||
# - WATCHTOWER_REVIVE_STOPPED=true
|
||||
# watchtower can behave like DIUN by only notifying, and not updating
|
||||
# - WATCHTOWER_MONITOR_ONLY=true
|
||||
# you can tell watchtower to do updates and restarts one by one - can be helpful
|
||||
- WATCHTOWER_ROLLING_RESTART=true
|
||||
|
||||
- WATCHTOWER_NOTIFICATIONS=gotify
|
||||
- WATCHTOWER_NOTIFICATION_GOTIFY_URL=https://gotify.example.com
|
||||
- WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN=/run/secrets/access_token
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
# - /root/.docker/config.json:/config.json - Enable this when using a custom repo
|
||||
command: --interval 30 # change this interval to whatever suits you
|
||||
Reference in New Issue
Block a user