From 43f9b050548014f35525c988365e6bae911c5882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Sun, 24 Nov 2024 16:51:52 +0100 Subject: [PATCH] ci: Introduce Watchtower --- deploy/docker-compose.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 21593d8..88f854c 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -7,13 +7,28 @@ services: ports: - 3001:3001 env_file: - - .env.production # for N8N_SHORTLINK_SENTRY_DSN + - .env.production # only for N8N_SHORTLINK_SENTRY_DSN environment: - N8N_SHORTLINK_HOST=0.0.0.0 - N8N_SHORTLINK_ENVIRONMENT=production volumes: - ${HOME}/.n8n-shortlink:/root/.n8n-shortlink restart: unless-stopped + labels: + - "com.centurylinklabs.watchtower.enable=true" + networks: + - n8n-shortlink-network + + watchtower: + image: containrrr/watchtower + container_name: watchtower + volumes: + - /var/run/docker.sock:/var/run/docker.sock + environment: + - WATCHTOWER_CLEANUP=true + - WATCHTOWER_LABEL_ENABLE=true + - WATCHTOWER_POLL_INTERVAL=21600 # every 6 hours + restart: unless-stopped networks: - n8n-shortlink-network