Drive watchtower config from environment

This commit is contained in:
Jake Howard 2020-10-06 09:10:26 +01:00
parent 413ff4dad9
commit 93ccb686e7
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -5,5 +5,8 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "{{ home }}/.docker/config.json:/config.json:ro"
command: --cleanup --interval 600
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=600
restart: unless-stopped