# Watchtower





| Création    | Portainer                                                    |
| ----------- | ------------------------------------------------------------ |
| Mise-à-jour | Watchtower                                                   |
| Port        | -                                                            |
| Liens       | [Watchtower](https://containrrr.dev/watchtower/)<br />[Github](https://github.com/containrrr/watchtower/) |



```yaml
version: '2.1'
services:

   watchtower:
      image: containrrr/watchtower
      container_name: watchtower
      hostname: watchtower-nas
      network_mode: bridge
      environment:
         - WATCHTOWER_NOTIFICATIONS=email
         - WATCHTOWER_CLEANUP=true
         - WATCHTOWER_DEBUG=true
         - WATCHTOWER_LABEL_ENABLE=true
         - WATCHTOWER_TIMEOUT=30s
         #- WATCHTOWER_POLL_INTERVAL=300
         - WATCHTOWER_SCHEDULE=0 0 5 * * *
         - TZ=Europe/Paris
      env_file:
         - stack.env
      labels:
         - "com.centurylinklabs.watchtower.enable=true"
      volumes:
         - /var/run/docker.sock:/var/run/docker.sock
         - /volume1/docker/watchtower/config.json:/root/.docker/config.json
      restart: unless-stopped

```

