diff --git a/docker/examples/docker-compose.yml b/docker/examples/docker-compose.yml index a51352eb0..3b1faee78 100644 --- a/docker/examples/docker-compose.yml +++ b/docker/examples/docker-compose.yml @@ -125,13 +125,14 @@ services: ## Watchtower upgrades services automatically (optional) ## see https://docs.photoprism.app/getting-started/updates/#watchtower - # - # watchtower: - # restart: unless-stopped - # image: containrrr/watchtower - # environment: - # WATCHTOWER_CLEANUP: "true" - # WATCHTOWER_POLL_INTERVAL: 7200 # checks for updates every two hours - # volumes: - # - "/var/run/docker.sock:/var/run/docker.sock" - # - "~/.docker/config.json:/config.json" # optional, for authentication if you have a Docker Hub account + ## activate via "COMPOSE_PROFILES=update docker compose up -d" + watchtower: + restart: unless-stopped + image: containrrr/watchtower + profiles: ["update"] + environment: + WATCHTOWER_CLEANUP: "true" + WATCHTOWER_POLL_INTERVAL: 7200 # checks for updates every two hours + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + - "~/.docker/config.json:/config.json" # optional, for authentication if you have a Docker Hub account