-
-
Notifications
You must be signed in to change notification settings - Fork 242
Better Docker Compose example #685
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
Open
enoch85
wants to merge
6
commits into
AnalogJ:master
Choose a base branch
from
enoch85:patch-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
016ea6d
Better Docker Compose example
enoch85 3842fb2
smaller details
enoch85 5523648
remove healthchecks
enoch85 e1ef8db
Merge branch 'master' into patch-2
enoch85 42cc53e
Merge branch 'master' into patch-2
enoch85 67bd8b9
Merge branch 'master' into patch-2
enoch85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | ||
|
|
@@ -72,32 +68,48 @@ 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 | ||
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://localhost:8086/health"] | ||
| interval: 5s | ||
| timeout: 10s | ||
| retries: 20 | ||
|
|
||
| scrutiny: | ||
| container_name: scrutiny | ||
| image: ghcr.io/analogj/scrutiny:master-web | ||
| 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 | ||
| - monitoring | ||
| healthcheck: | ||
| test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"] | ||
| interval: 5s | ||
| timeout: 10s | ||
| retries: 20 | ||
| start_period: 10s | ||
|
|
||
| ``` | ||
|
|
||
| A freshly initialized Scrutiny instance can be accessed on port 8080, eg. `192.168.0.100:8080`. The interface will be | ||
|
|
@@ -163,8 +175,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: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.