homelab/apps/watchtower.yaml

24 lines
770 B
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
#######################################
# Watchtower - automated image updates
#######################################
services:
watchtower:
container_name: watchtower
image: containrrr/watchtower:latest
profiles: ["utilities", "all"]
networks:
internal:
docker:
security_opt:
- no-new-privileges:true
restart: unless-stopped
environment:
TZ: ${TZ}
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_REMOVE_VOLUMES: "true"
WATCHTOWER_INCLUDE_STOPPED: "true"
WATCHTOWER_NO_STARTUP_MESSAGE: "false"
WATCHTOWER_SCHEDULE: 0 30 12 * * *
DOCKER_HOST: tcp://socket-proxy:2375