Skip to content

Watchtower

Description⚓︎

Watchtower can auto-updates your docker containers, pull latest image, notify you of new image or updated container and some more

Docker⚓︎

Basic info⚓︎

Basic info with official links

docker-compose.yml⚓︎

YAML
---
version: "3"
services:
  watchtower:
    image: containrrr/watchtower:latest
    container_name: watchtower
    networks:
      - proxy # rename this to your custom docker network
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime:ro
    environment:
      WATCHTOWER_CLEANUP: "true"
      WATCHTOWER_INCLUDE_RESTARTING: "true"
      WATCHTOWER_ROLLING_RESTART: "true"
      WATCHTOWER_SCHEDULE: 0 0 3 * * * #at 3 AM everyday
      WATCHTOWER_NOTIFICATION_URL: ${WATCHTOWER_URL}
      WATCHTOWER_DEBUG: "true"
      WATCHTOWER_POLL_INTERVAL: "86400"
    restart: unless-stopped

networks:
  proxy:    # rename this to your custom docker network.
    external: true

deploy.sh⚓︎

Bash
docker compose up -d