Merge pull request 'Adding scrutiny' (#10) from scrutiny into master
Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
68
scrutiny/compose.yml
Normal file
68
scrutiny/compose.yml
Normal file
@@ -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:
|
||||
Reference in New Issue
Block a user