Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Docker Compose example #685

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions docs/INSTALL_HUB_SPOKE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,14 @@ contains the connection and notification details but I always find it easier to
docker-compose.

```yaml
version: "3.4"

networks:
monitoring: # A common network for all monitoring services to communicate into
external: true
notifications: # To Gotify or another Notification service
external: true

services:
influxdb:
container_name: influxdb
image: influxdb:2.1-alpine
image: influxdb:2.7-alpine
ports:
- 8086:8086
volumes:
Expand All @@ -72,7 +68,8 @@ services:
- DOCKER_INFLUXDB_INIT_PASSWORD=${PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=homelab
- 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
restart: unless-stopped
networks:
- monitoring
Expand All @@ -83,17 +80,20 @@ services:
ports:
- 8080:8080
volumes:
- ${DIR_CONFIG}/scrutiny/config:/opt/scrutiny/config
- ${DIR_CONFIG}/config:/opt/scrutiny/config
environment:
- SCRUTINY_WEB_INFLUXDB_HOST=influxdb
- 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_BUCKET=scrutiny
# Optional but highly recommended to notify you in case of a problem
- SCRUTINY_NOTIFY_URLS=["http://gotify:80/message?token=a-gotify-token"]
# https://github.com/AnalogJ/scrutiny/blob/master/docs/TROUBLESHOOTING_NOTIFICATIONS.md
- SCRUTINY_NOTIFY_URLS=[ smtp://myname%40example%2Ecom:124%4034%[email protected]:587 ]
- TZ=Europe/Stockholm
depends_on:
- influxdb
influxdb:
condition: service_healthy
restart: unless-stopped
networks:
- notifications
Expand Down Expand Up @@ -163,8 +163,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.

```yaml
version: "3.4"

services:

collector:
Expand Down
Loading