infrastructure/scrutiny/docker-compose.yaml

34 lines
873 B
YAML
Raw Normal View History

2022-04-04 18:13:05 +02:00
version: "3"
services:
scrutiny:
2022-06-23 15:26:40 +02:00
image: ghcr.io/analogj/scrutiny
2022-04-04 18:13:05 +02:00
container_name: scrutiny
restart: unless-stopped
cap_add:
- SYS_RAWIO
- ${NO_NVME:-SYS_ADMIN} # only needed for nvme drives
environment:
- TZ=Europe/Berlin
- SCRUTINY_API_ENDPOINT=http://localhost:8080
- GIN_MODE=release
volumes:
2022-06-23 15:26:40 +02:00
- scrutiny_config:/opt/scrutiny/config
- scrutiny_influxdb2:/opt/scrutiny/influxdb
2022-04-04 18:13:05 +02:00
- /run/udev:/run/udev:ro
ports:
2022-04-04 18:27:21 +02:00
- 127.0.0.1:8081:8080
2022-04-04 18:13:05 +02:00
devices:
- ${first_device:-/dev/tty1}
- ${second_device:-/dev/tty2}
- ${third_device:-/dev/tty3}
- ${fourth_device:-/dev/tty4}
- ${fifth_device:-/dev/tty5}
# - /dev/sda:/dev/sda
# - /dev/disk/by-id/id-of-the-drive:/dev/sda
# - /dev/nvme1n1:/dev/nvme1n1
volumes:
scrutiny_config:
scrutiny_influxdb2: