34 lines
1022 B
YAML
34 lines
1022 B
YAML
# Watchtower - Container Auto-Updater for Calypso
|
|
# Schedule: Daily at 4:00 AM PST
|
|
# HTTP API: Available for metrics and status (not updates)
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
watchtower:
|
|
image: containrrr/watchtower:latest
|
|
container_name: watchtower
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
# Core functionality
|
|
- WATCHTOWER_CLEANUP=true
|
|
- WATCHTOWER_INCLUDE_RESTARTING=true
|
|
- WATCHTOWER_INCLUDE_STOPPED=true
|
|
- WATCHTOWER_REVIVE_STOPPED=false
|
|
- WATCHTOWER_TIMEOUT=10s
|
|
- TZ=America/Los_Angeles
|
|
|
|
# Scheduling - Run daily at 4:00 AM
|
|
- WATCHTOWER_SCHEDULE=0 0 4 * * *
|
|
|
|
# HTTP API for metrics only (not updates to allow scheduled runs)
|
|
- WATCHTOWER_HTTP_API_METRICS=true
|
|
- WATCHTOWER_HTTP_API_TOKEN="REDACTED_HTTP_TOKEN"
|
|
|
|
restart: unless-stopped
|
|
labels:
|
|
# Exclude watchtower from updating itself
|
|
- "com.centurylinklabs.watchtower.enable=false" |