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