infrastructure/compose/05_watchtower/docker-compose.yml
Tobias Manske 7cf53e2513
Watchtower: Update every 6 instead of 24 hours
Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2022-06-20 14:36:36 +02:00

35 lines
881 B
YAML

---
services:
update:
image: containrrr/watchtower:latest
privileged: true
environment:
DOCKER_CONFIG: /config
WATCHTOWER_POLL_INTERVAL: 21600
WATCHTOWER_CLEANUP: 1
WATCHTOWER_ROLLING_RESTART: 1
WATCHTOWER_SCOPE: update
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/core/.docker:/config
restart: always
labels:
- "com.centurylinklabs.watchtower.scope=update"
http:
image: containrrr/watchtower:latest
privileged: true
environment:
DOCKER_CONFIG: /config
WATCHTOWER_POLL_INTERVAL: 900
WATCHTOWER_CLEANUP: 1
WATCHTOWER_ROLLING_RESTART: 1
WATCHTOWER_SCOPE: http
volumes:
- /home/core/.docker/:/config/
- /var/run/docker.sock:/var/run/docker.sock
restart: always
labels:
- "com.centurylinklabs.watchtower.scope=http"
...