This commit is contained in:
DoTheEvolution 2020-05-10 23:36:32 +02:00
parent 606703b12c
commit f68acf8182
1 changed files with 16 additions and 2 deletions

View File

@ -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</br>
Scheduled to run every saturday at midnight using environmental variable.</br>
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).