From 8b5446dd89a3447111e07984ff7b3a9b8409c1b4 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 18 Jul 2020 16:19:29 +0300 Subject: [PATCH] Watchtower prototype added. --- README.md | 1 + watchtower/.env.dist | 8 ++++++++ watchtower/docker-compose.yml | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 watchtower/.env.dist create mode 100644 watchtower/docker-compose.yml diff --git a/README.md b/README.md index 86a3fc6..b277fbf 100644 --- a/README.md +++ b/README.md @@ -45,5 +45,6 @@ Not every stack is tested to fully work. - [x] Redis - [ ] Sonarr (prototype state, working itself, but transmission-on-host integration didn't work due to path mismatch) - [x] Speedtest (LibreSpeed) +- [ ] Watchtower (prototype state) - [ ] Wordpress (prototype state) - [ ] YaCy (abandoned due to upstream code problems) diff --git a/watchtower/.env.dist b/watchtower/.env.dist new file mode 100644 index 0000000..3b83ed6 --- /dev/null +++ b/watchtower/.env.dist @@ -0,0 +1,8 @@ +# https://hub.docker.com/r/containrrr/watchtower +# https://containrrr.dev/watchtower/ + +# Define containers (separated by space) which you want to automatically update here: +CONTAINERS_LIST=container1 container2 + +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 diff --git a/watchtower/docker-compose.yml b/watchtower/docker-compose.yml new file mode 100644 index 0000000..8f42c6d --- /dev/null +++ b/watchtower/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.7' + +services: + watchtower: + # https://hub.docker.com/r/containrrr/watchtower + # https://containrrr.dev/watchtower/ + image: containrrr/watchtower:latest + container_name: watchtower + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + env_file: .env + restart: unless-stopped + command: "${CONTAINERS_LIST}" + logging: + driver: "json-file" + options: + max-size: "${LOG_MAX_SIZE:-5m}" + max-file: "${LOG_MAX_FILE:-5}"