[Feature] Auto detect TZ #385

Open
opened 2025-10-31 15:10:27 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @lerrrii on GitHub (May 25, 2025).

Watchtower TZ variable not working in Komodo and Portainer too. But works in Dokploy like this: (not hardcoded)

version: '3.7'

services:
  watchtower:
    image: beatkind/watchtower:latest
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /etc/localtime:/etc/localtime:ro  # Sync host time
      - /etc/timezone:/etc/timezone:ro    # Optional: Debian/Ubuntu systems
    ports:
      - "${WATCHTOWER_PORT:-8080}:8080"
    environment:
      - TZ=${TZ:-UTC}
      - WATCHTOWER_SCHEDULE=${WATCHTOWER_SCHEDULE}

    restart: unless-stopped

And in Komodo environments:

WATCHTOWER_SCHEDULE=0 * * * * *
TZ=Europe/London

In Dokploy TZ works without needing to be hardcoded. Thank you

Originally created by @lerrrii on GitHub (May 25, 2025). Watchtower TZ variable not working in Komodo and Portainer too. But works in Dokploy like this: (not hardcoded) ``` version: '3.7' services: watchtower: image: beatkind/watchtower:latest container_name: watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - /etc/localtime:/etc/localtime:ro # Sync host time - /etc/timezone:/etc/timezone:ro # Optional: Debian/Ubuntu systems ports: - "${WATCHTOWER_PORT:-8080}:8080" environment: - TZ=${TZ:-UTC} - WATCHTOWER_SCHEDULE=${WATCHTOWER_SCHEDULE} restart: unless-stopped ``` And in Komodo environments: ``` WATCHTOWER_SCHEDULE=0 * * * * * TZ=Europe/London ``` In Dokploy TZ works without needing to be hardcoded. Thank you
GiteaMirror added the
enhancement
label 2025-10-31 15:10:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#385
No description provided.