From d397d5506d0b4209d4ab119f2453cb186a4377ae Mon Sep 17 00:00:00 2001 From: Jeff Near Date: Thu, 9 Apr 2026 21:55:42 +0000 Subject: [PATCH] Adding scrutiny --- scrutiny/compose.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 scrutiny/compose.yml diff --git a/scrutiny/compose.yml b/scrutiny/compose.yml new file mode 100644 index 0000000..faf2971 --- /dev/null +++ b/scrutiny/compose.yml @@ -0,0 +1,68 @@ +services: + influxdb: + restart: unless-stopped + image: influxdb:2.8 + ports: + - '8086:8086' + user: 1029:1000 + volumes: + - /home/fejy/docker/scrutiny/influxdb:/var/lib/influxdb2 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8086/health"] + interval: 5s + timeout: 10s + retries: 20 + networks: + - scrutiny + + web: + restart: unless-stopped + image: 'ghcr.io/analogj/scrutiny:v0-web' + user: 1029:1000 + volumes: + - /home/fejy/docker/scrutiny/config:/opt/scrutiny/config + environment: + SCRUTINY_WEB_INFLUXDB_HOST: 'influxdb' + depends_on: + influxdb: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"] + interval: 5s + timeout: 10s + retries: 20 + start_period: 10s + networks: + - proxy + - scrutiny + labels: + - "traefik.enable=true" + - "traefik.docker.network=proxy" + - "traefik.http.routers.scrutiny.entryPoints=web" + - "traefik.http.routers.scrutiny.rule=Host(`scrutiny.nearfuture`)" + + collector: + restart: unless-stopped + image: 'ghcr.io/analogj/scrutiny:v0.8-collector' + cap_add: + - SYS_RAWIO + volumes: + - '/run/udev:/run/udev:ro' + environment: + COLLECTOR_API_ENDPOINT: 'http://web:8080' + COLLECTOR_HOST_ID: 'Invidia' + # If true forces the collector to run on startup (cron will be started after the collector completes) + # see: https://github.com/AnalogJ/scrutiny/blob/master/docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md#collector-trigger-on-startup + COLLECTOR_RUN_STARTUP: true + depends_on: + web: + condition: service_healthy + networks: + - scrutiny + devices: + - "/dev/sda:/dev/sda" + +networks: + proxy: + external: true + scrutiny: