From 84a2b1dc968badf7e9f490e7c87cca49c8bb721a Mon Sep 17 00:00:00 2001 From: Jarosenb Date: Thu, 9 Dec 2021 18:57:47 -0600 Subject: [PATCH] add watchtower service --- camino/docker-compose.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/camino/docker-compose.yml b/camino/docker-compose.yml index 817c7bf..faed0b8 100644 --- a/camino/docker-compose.yml +++ b/camino/docker-compose.yml @@ -1,11 +1,14 @@ -version: '3.8' +version: "3.8" services: server: image: wmatacc/ds-download:deploy - command: gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 + command: gunicorn main:app --workers 4 --worker-class + uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 container_name: ds_download_server volumes: - /corral-repl/tacc/NHERI:/corral-repl/tacc/NHERI + labels: + - "com.centurylinklabs.watchtower.enable=true" logging: driver: syslog options: @@ -34,4 +37,14 @@ services: logging: driver: syslog options: - tag: ds_download_redis \ No newline at end of file + tag: ds_download_redis + + watchtower: + image: containrrr/watchtower + volumes: + - /var/run/docker.sock:/var/run/docker.sock + command: --interval 30 --label-enable + logging: + driver: syslog + options: + tag: ds_download_redis