aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-02-10 04:38:04 +0100
committerMax Magorsch <arzano@gentoo.org>2020-02-10 04:38:04 +0100
commit1ab83e61da620442c5d5c6f44e052d9526593eee (patch)
treef93e5cd7185776d61846975a1cff1e12d00d4cc1 /docker-compose.yml
parentPrepare docker-compose.yml for usage in production (diff)
downloadpackages-5-1ab83e61da620442c5d5c6f44e052d9526593eee.tar.gz
packages-5-1ab83e61da620442c5d5c6f44e052d9526593eee.tar.bz2
packages-5-1ab83e61da620442c5d5c6f44e052d9526593eee.zip
Add watchtower to automatically deploy new images
Watchtower will automatically check whether a new version of a container image is present in the specified container registry. If so, watchtower will automatically pull the new image and restart the container. By default, watchtower will look for new images every 5 minutes. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index cba9792..73a3538 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -38,6 +38,8 @@ services:
- MEMCACHE_URL="memcache:11211"
- SECRET_KEY_BASE= ${SECRET_KEY_BASE:-6c9710aeb74dd88ff1d1b8f4bd6d7d8e0f340905d0974400fffd7246714aa703cf7bf4a98c0bc90317a3b803b82c0f9371e18ada19fc4eed9d6118077a249f50}
restart: always
+ labels:
+ com.centurylinklabs.watchtower.enable: "true"
depends_on:
- redis
- elasticsearch
@@ -60,6 +62,8 @@ services:
- ELASTICSEARCH_URL=elasticsearch:9200
- SECRET_KEY_BASE= ${SECRET_KEY_BASE:-6c9710aeb74dd88ff1d1b8f4bd6d7d8e0f340905d0974400fffd7246714aa703cf7bf4a98c0bc90317a3b803b82c0f9371e18ada19fc4eed9d6118077a249f50}
restart: always
+ labels:
+ com.centurylinklabs.watchtower.enable: "true"
depends_on:
- redis
- elasticsearch
@@ -90,6 +94,12 @@ services:
redis:
image: redis:${REDIS_VERSION:-4.0.6}
restart: always
+ watchtower:
+ image: containrrr/watchtower:0.3.10
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ - /root/.docker/config.json:/config.json
+ command: --label-enable
volumes:
portage: