Nomploy Nomad Packs

← All packs

sun-panel v0.1.0

Dashboards

Sun-Panel — a server/NAS navigation panel and homepage (a browser start page) with app bookmarks, rich icons, a system-status widget and custom CSS/JS. Deployed as a single host-networked Nomad service with SQLite storage.

nomad-pack run sun-panel --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- sun-panel

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

1 task http 3002 1 volume image hslr/sun-panel:latest tracks :latest image bumped today
Variables 8
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run sun-panel -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "sun-panel"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The Sun-Panel container image. Pin a tag in production.
image = "hslr/sun-panel:latest"

# Host port for the Sun-Panel web UI.
port = 3002

# Named volume for Sun-Panel config, database and uploads (/app/conf).
conf_volume = "sun_panel_conf"

# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# Resources for the Sun-Panel task.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"sun-panel"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"hslr/sun-panel:latest"
The Sun-Panel container image. Pin a tag in production.
port number
3002
Host port for the Sun-Panel web UI.
conf_volume string
"sun_panel_conf"
Named volume for Sun-Panel config, database and uploads (/app/conf).
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 300
    memory = 256
  }
Resources for the Sun-Panel task.
Back up this pack

This pack stores data in one Docker named volume: sun_panel_conf

restic

# Run on the node hosting this pack. Point restic at your repo first:
#   export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>"
#   export RESTIC_PASSWORD="<repo-password>"
#   export AWS_ACCESS_KEY_ID=<key>  AWS_SECRET_ACCESS_KEY=<secret>
restic backup \
  /var/lib/docker/volumes/sun_panel_conf/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/sun_panel_conf/_data backup:<bucket>/sun_panel_conf

Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.

Readme

sun-panel

Sun-Panel is a server / NAS navigation panel and homepage — a browser start page with app bookmarks, rich icons (Iconify), a system-status widget, multiple accounts and custom CSS/JS.

This pack runs Sun-Panel as a single host-networked Nomad job. Its config, SQLite database and uploads live in the sun_panel_conf volume (/app/conf) — no external database is required.

Quick start

nomad-pack run sun-panel --registry=nomploy

Then open http://<node-ip>:3002 and sign in with the default account:

Change the password immediately.

Configuration

Variable Default Notes
port 3002 Web UI host port
conf_volume sun_panel_conf Config + SQLite database + uploads

The server listens on 3002 inside the container; if you change port, also update http_port in /app/conf/conf.ini. Data persists in the sun_panel_conf named volume.