feat: Adds watchtower
This commit is contained in:
5
watchtower/README.md
Normal file
5
watchtower/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Watchtower
|
||||
|
||||
[Watchtower](https://github.com/containrrr/watchtower) is a tool that watches for new docker images
|
||||
based on their `tag`, and will pull new images when available and restart services that include a
|
||||
label of `com.centurylinklabs.watchtower.enable: true`.
|
||||
22
watchtower/compose.yml
Normal file
22
watchtower/compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
backend:
|
||||
external: true
|
||||
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower:latest
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
- backend
|
||||
environment:
|
||||
WATCHTOWER_CLEANUP: true
|
||||
WATCHTOWER_LABEL_ENABLE: true
|
||||
WATCHTOWER_TIMEOUT: 30s
|
||||
TZ: "America/New_York"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user