Skip to content

Commit

Permalink
Merge pull request #5929 from nextcloud/enh/3549/add-scrutiny
Browse files Browse the repository at this point in the history
add scrutiny community container
  • Loading branch information
szaimen authored Jan 22, 2025
2 parents 28cc905 + 4def229 commit d1b37c1
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
15 changes: 15 additions & 0 deletions community-containers/scrutiny/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Scrutiny
This container bundles Scrutiny and auto-configures it for you.

### Notes
- This container should only be run in home networks
- ⚠️ This container mounts all devices from the host inside the container in order to be able to access the drives and smartctl stats which is a security issue. However no better solution was found for the time being.
- This container only works on Linux and not on Docker-Desktop.
- After adding and starting the container, you need to visit `http://internal.ip.of.server:8000` which will show the dashboard for your drives.
- See https://github.com/nextcloud/all-in-one/tree/main/community-containers#community-containers how to add it to the AIO stack

### Repository
https://github.com/szaimen/aio-scrutiny

### Maintainer
https://github.com/szaimen
55 changes: 55 additions & 0 deletions community-containers/scrutiny/scrutiny.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"aio_services_v1": [
{
"container_name": "nextcloud-aio-scrutiny",
"display_name": "Scrutiny",
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/scrutiny",
"image": "szaimen/aio-scrutiny",
"image_tag": "v1",
"internal_port": "8000",
"restart": "unless-stopped",
"ports": [
{
"ip_binding": "",
"port_number": "8000",
"protocol": "tcp"
}
],
"cap_add": [
"SYS_RAWIO",
"SYS_ADMIN"
],
"environment": [
"TZ=%TIMEZONE%",
"SCRUTINY_WEB_LISTEN_PORT=8000",
"COLLECTOR_API_ENDPOINT=http://127.0.0.1:8000"
],
"volumes": [
{
"source": "nextcloud_aio_scrutiny",
"destination": "/opt/scrutiny/config",
"writeable": true
},
{
"source": "nextcloud_aio_scrutiny_db",
"destination": "/opt/scrutiny/influxdb",
"writeable": true
},
{
"source": "/run/udev",
"destination": "/run/udev",
"writeable": false
},
{
"source": "/dev",
"destination": "/dev",
"writeable": false
}
],
"backup_volumes": [
"nextcloud_aio_scrutiny",
"nextcloud_aio_scrutiny_db"
]
}
]
}
2 changes: 1 addition & 1 deletion php/containers-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
},
"source": {
"type": "string",
"pattern": "^((nextcloud_aio_[a-z_]+)|(%[A-Z_]+%)|(/dev))$"
"pattern": "^((nextcloud_aio_[a-z_]+)|(%[A-Z_]+%)|(/dev)|(/run/udev))$"
},
"writeable": {
"type": "boolean"
Expand Down

0 comments on commit d1b37c1

Please sign in to comment.