Update docker compose example (#685)

This commit is contained in:
enoch85
2026-02-22 17:06:55 +01:00
committed by GitHub
parent fb5d4818b0
commit 9d1ce790d0
+9 -11
View File
@@ -49,19 +49,15 @@ contains the connection and notification details but I always find it easier to
docker-compose. docker-compose.
```yaml ```yaml
version: "3.4"
networks: networks:
monitoring: # A common network for all monitoring services to communicate into monitoring: # A common network for all monitoring services to communicate into
external: true
notifications: # To Gotify or another Notification service notifications: # To Gotify or another Notification service
external: true
services: services:
influxdb: influxdb:
restart: unless-stopped restart: unless-stopped
container_name: influxdb container_name: influxdb
image: influxdb:2.1-alpine image: influxdb:2.8
ports: ports:
- 8086:8086 - 8086:8086
volumes: volumes:
@@ -73,7 +69,8 @@ services:
- DOCKER_INFLUXDB_INIT_PASSWORD=${PASSWORD} - DOCKER_INFLUXDB_INIT_PASSWORD=${PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=homelab - DOCKER_INFLUXDB_INIT_ORG=homelab
- DOCKER_INFLUXDB_INIT_BUCKET=scrutiny - DOCKER_INFLUXDB_INIT_BUCKET=scrutiny
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=your-very-secret-token - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=SUPER-SECRET-TOKEN
- TZ=Europe/Stockholm
networks: networks:
- monitoring - monitoring
@@ -85,17 +82,20 @@ services:
ports: ports:
- 8080:8080 - 8080:8080
volumes: volumes:
- ${DIR_CONFIG}/scrutiny/config:/opt/scrutiny/config - ${DIR_CONFIG}/config:/opt/scrutiny/config
environment: environment:
- SCRUTINY_WEB_INFLUXDB_HOST=influxdb - SCRUTINY_WEB_INFLUXDB_HOST=influxdb
- SCRUTINY_WEB_INFLUXDB_PORT=8086 - SCRUTINY_WEB_INFLUXDB_PORT=8086
- SCRUTINY_WEB_INFLUXDB_TOKEN=your-very-secret-token - SCRUTINY_WEB_INFLUXDB_TOKEN=SUPER-SECRET-TOKEN
- SCRUTINY_WEB_INFLUXDB_ORG=homelab - SCRUTINY_WEB_INFLUXDB_ORG=homelab
- SCRUTINY_WEB_INFLUXDB_BUCKET=scrutiny - SCRUTINY_WEB_INFLUXDB_BUCKET=scrutiny
# Optional but highly recommended to notify you in case of a problem; space-separated list of shoutrrr uri's # Optional but highly recommended to notify you in case of a problem; space-separated list of shoutrrr uri's
# https://github.com/AnalogJ/scrutiny/blob/master/docs/TROUBLESHOOTING_NOTIFICATIONS.md
- SCRUTINY_NOTIFY_URLS=http://gotify:80/message?token=a-gotify-token ntfy://username:password@host:port/topic - SCRUTINY_NOTIFY_URLS=http://gotify:80/message?token=a-gotify-token ntfy://username:password@host:port/topic
- TZ=Europe/Stockholm
depends_on: depends_on:
- influxdb influxdb:
condition: service_healthy
networks: networks:
- notifications - notifications
- monitoring - monitoring
@@ -164,8 +164,6 @@ Also all drives that you wish to monitor need to be presented to the container u
The image handles the periodic scanning of the drives. The image handles the periodic scanning of the drives.
```yaml ```yaml
version: "3.4"
services: services:
collector: collector: