From f68acf81827b97b97c8f866a0f679dbf9661ca67 Mon Sep 17 00:00:00 2001 From: DoTheEvolution Date: Sun, 10 May 2020 23:36:32 +0200 Subject: [PATCH] update --- watchtower/readme.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/watchtower/readme.md b/watchtower/readme.md index 6e44c65..5ac16d3 100644 --- a/watchtower/readme.md +++ b/watchtower/readme.md @@ -11,6 +11,14 @@ Automatic updates of containers. * [Github](https://github.com/containrrr/watchtower) * [DockerHub image used](https://hub.docker.com/r/containrrr/watchtower) +Watchtower is an application that will monitor the running Docker containers +and watch for changes to the images that those containers +were originally started from. If watchtower detects that an image has changed, +it will automatically restart the container using the new image. + +As of now, Watchtower needs to always pull images to know if they changed. +This can be bandwidth intensive, so its scheduled checks should account for this. + # Files and directory structure ``` @@ -18,12 +26,18 @@ Automatic updates of containers. └── ~/ └── docker/ └── watchtower/ - └── 🗋 docker-compose.yml + ├── .env + └── docker-compose.yml ``` +* `.env` - a file containing environmental variables for docker compose +* `docker-compose.yml` - a docker compose file, telling docker how to build the containers + +Only these two files must be provided. + # docker-compose -Scheduled to run every saturday at midnight
+Scheduled to run every saturday at midnight using environmental variable.
Heads up that not a typical cron format is used, [seconds are the first digit](https://pkg.go.dev/github.com/robfig/cron@v1.2.0?tab=doc#hdr-CRON_Expression_Format).