Repository navigation
Expand file tree
/
Copy pathexample.env
More file actions
40 lines (30 loc) · 1.39 KB
/
Copy pathexample.env
File metadata and controls
40 lines (30 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Watchtower - environment variable example
# Copy this file to .env and fill in the values
# Goal: internal Docker image updater — no ports exposed
# Timezone for log timestamps (e.g. America/Los_Angeles, America/New_York, UTC)
TZ=America/Los_Angeles
# Polling interval in seconds (default: 86400 = 24h)
WATCHTOWER_POLL_INTERVAL=86400
# Or use a cron expression instead (overrides POLL_INTERVAL if set)
# WATCHTOWER_SCHEDULE=0 0 * * * *
# Remove old images automatically after updating containers
WATCHTOWER_CLEANUP=true
# Log level: panic | fatal | error | warn | info | debug | trace
WATCHTOWER_LOG_LEVEL=info
# --- Notifications (optional) ---
# Provider: email | slack | msteams | gotify | shoutrrr
# WATCHTOWER_NOTIFICATIONS=email
# Email settings
# WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower@example.com
# WATCHTOWER_NOTIFICATION_EMAIL_TO=admin@example.com
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.example.com
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=user@example.com
# WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=your_smtp_password
# Slack webhook
# WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=https://hooks.slack.com/services/XXX/YYY/ZZZ
# --- Behaviour (optional) ---
# Only watch containers with label com.centurylinklabs.watchtower.enable=true
# WATCHTOWER_LABEL_ENABLE=true
# Run once and exit (useful for cron jobs)
# WATCHTOWER_RUN_ONCE=true