-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watchtower: add mechanism to update lastes images vrsion of running c…
…ontainers
- Loading branch information
1 parent
8380f56
commit 94f369a
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Watchtower | ||
|
||
https://containrrr.dev/watchtower/ | ||
|
||
A container-based solution for automating Docker container base image updates. | ||
|
||
With watchtower you can update the running version of your containerized app | ||
simply by pushing a new image to the Docker Hub or your own image registry. | ||
Watchtower will pull down your new image, gracefully shut down your existing | ||
container and restart it with the same options that were used when it was | ||
deployed initially. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '2' | ||
|
||
services: | ||
watchtower: | ||
image: containrrr/watchtower:${WATCHTOWER_IMAGE_VERSION:-latest} | ||
environment: | ||
WATCHTOWER_CLEANUP: ${WATCHTOWER_CLEANUP:-true} | ||
WATCHTOWER_ROLLING_RESTART: ${WATCHTOWER_ROLLING_RESTART:-true} | ||
WATCHTOWER_SCHEDULE: ${WATCHTOWER_SCHEDULE:-'0 0 2 * * *'} # run at 2am everyday | ||
restart: always | ||
labels: | ||
traefik.enable: false | ||
volumes: | ||
- '/var/run/docker.sock:/var/run/docker.sock' |