diff --git a/watchtower/README.md b/watchtower/README.md new file mode 100644 index 0000000..d69fb9d --- /dev/null +++ b/watchtower/README.md @@ -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`. diff --git a/watchtower/compose.yml b/watchtower/compose.yml new file mode 100644 index 0000000..95c1699 --- /dev/null +++ b/watchtower/compose.yml @@ -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 +