secrets: access_token: file: access_token services: watchtower: container_name: watchtower hostname: watchtower image: containrrr/watchtower restart: unless-stopped secrets: - access_token environment: - TZ=Europe/Paris # the below will ignore labels set. It is worth checking out labels as that can be a more scalabe solution (automatic) # - WATCHTOWER_DISABLE_CONTAINERS=traefik crowdsec bouncer-traefik deconz frigate home-assistant homeassistant-db # 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=3600 # 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_LABEL_ENABLE=true # Supprime les vieilles images après la mise à jour - WATCHTOWER_CLEANUP=true # Supprime les volumes anonymes après la mise à jour - WATCHTOWER_REMOVE_VOLUMES=true # Activer le mode de trace avec une diagraphie très verbeuse # - WATCHTOWER_TRACE=false # Le niveau de logarithme maximum qui sera écrit à STDERR - WATCHTOWER_LOG_LEVEL=info # panic, fatal, error, warn, info, debug or trace # Définit quel format d'enregistrement utiliser pour la sortie de la console. # - WATCHTOWER_LOG_FORMAT=auto # Auto, LogFmt, Pretty or JSON # # - NO_COLOR=false # # - WATCHTOWER_DISABLE_CONTAINERS=false # # - WATCHTOWER_NO_RESTART=false - WATCHTOWER_NOTIFICATIONS=gotify - WATCHTOWER_NOTIFICATION_GOTIFY_URL=https://gotify.tips-of-mine.com/ - WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN=/run/secrets/access_token # - WATCHTOWER_NOTIFICATIONS=email # - WATCHTOWER_NOTIFICATION_EMAIL_FROM=fromaddress@gmail.com # - WATCHTOWER_NOTIFICATION_EMAIL_TO=toaddress@gmail.com # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587 # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=fromaddress@gmail.com # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=app_password # - WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 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 #--http-api-metrics --http-api-token demotoken --debug prometheus grafana parent child # change this interval to whatever suits you ports: - 8087:8080