mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
feat(upsnap): add blueprint for Upsnap network monitor (#475)
- Add docker-compose.yml for containerized deployment with health checks and environment variables - Include template.toml with configuration variables, domain settings, and mount points - Add upsnap.svg icon for the service visualization This commit introduces a complete blueprint to simplify deployment of the Upsnap network monitoring tool using Docker.
This commit is contained in:
24
blueprints/upsnap/docker-compose.yml
Normal file
24
blueprints/upsnap/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
upsnap:
|
||||
image: ghcr.io/seriousm4x/upsnap:5
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 8090
|
||||
volumes:
|
||||
- upsnap-data:/app/pb_data
|
||||
environment:
|
||||
- TZ=${TZ}
|
||||
- UPSNAP_INTERVAL=${UPSNAP_INTERVAL}
|
||||
- UPSNAP_SCAN_RANGE=${UPSNAP_SCAN_RANGE}
|
||||
- UPSNAP_SCAN_TIMEOUT=${UPSNAP_SCAN_TIMEOUT}
|
||||
- UPSNAP_PING_PRIVILEGED=${UPSNAP_PING_PRIVILEGED}
|
||||
- UPSNAP_WEBSITE_TITLE=${UPSNAP_WEBSITE_TITLE}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-fs", "http://localhost:8090/api/health"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
upsnap-data:
|
||||
driver: local
|
||||
23
blueprints/upsnap/template.toml
Normal file
23
blueprints/upsnap/template.toml
Normal file
@@ -0,0 +1,23 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
upsnap_password = "${password:32}"
|
||||
|
||||
[config]
|
||||
|
||||
[[config.domains]]
|
||||
serviceName = "upsnap"
|
||||
port = 8090
|
||||
host = "${main_domain}"
|
||||
path = "/"
|
||||
|
||||
[config.env]
|
||||
TZ = "Europe/Berlin"
|
||||
UPSNAP_INTERVAL = "*/10 * * * * *"
|
||||
UPSNAP_SCAN_RANGE = "192.168.1.0/24"
|
||||
UPSNAP_SCAN_TIMEOUT = "500ms"
|
||||
UPSNAP_PING_PRIVILEGED = "true"
|
||||
UPSNAP_WEBSITE_TITLE = "Upsnap Network Monitor"
|
||||
|
||||
[[config.mounts]]
|
||||
source = "upsnap-data"
|
||||
target = "/app/pb_data"
|
||||
114
blueprints/upsnap/upsnap.svg
Normal file
114
blueprints/upsnap/upsnap.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 54 KiB |
18
meta.json
18
meta.json
@@ -5126,6 +5126,24 @@
|
||||
"networking"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "upsnap",
|
||||
"name": "Upsnap",
|
||||
"version": "5",
|
||||
"description": "Upsnap is a simple network device monitor and dashboard built on PocketBase.",
|
||||
"logo": "upsnap.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/seriousm4x/upsnap",
|
||||
"website": "https://github.com/seriousm4x/upsnap",
|
||||
"docs": "https://github.com/seriousm4x/upsnap#readme"
|
||||
},
|
||||
"tags": [
|
||||
"network",
|
||||
"monitoring",
|
||||
"dashboard",
|
||||
"self-hosted"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "uptime-kuma",
|
||||
"name": "Uptime Kuma",
|
||||
|
||||
Reference in New Issue
Block a user