From 7a8d4ede6f57437b615e704b0c886d1da1409ae6 Mon Sep 17 00:00:00 2001 From: DitchTurtL Date: Mon, 16 Dec 2024 23:40:03 +0000 Subject: [PATCH] Updating docker compose for watchtower --- docker-compose.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 7f88101..78d7d23 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,4 +4,16 @@ services: image: ghcr.io/opensource-force/osf-site:latest restart: always ports: - - 9090:3000 \ No newline at end of file + - 9090:3000 + labels: + - "com.centurylinklabs.watchtower.enable=true" + watchtower: + container_name: watchtower + image: containrrr/watchtower + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock + environment: + - WATCHTOWER_INTERVAL=21600 # Check every 6 hours (in seconds) + - WATCHTOWER_CLEANUP=true # Remove old images to save disk space + - WATCHTOWER_LABEL_ENABLE=true # Only watch containers with the watchtower label \ No newline at end of file