Files
my-self-host-services/watchtower/docker-compose.yaml
T

21 lines
497 B
YAML

services:
watchtower:
image: nickfedor/watchtower:1
container_name: watchtower
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ~/.docker/config.json:/config.json:ro
command:
- "--label-enable"
- "--cleanup"
- "--interval"
- "28800" # 8 hours
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"