Photoview — a simple, fast photo gallery for self-hosted personal servers, with face recognition, timeline and map views, built to browse your existing photo directory. Deployed as a single host-networked Nomad service (SQLite).
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 6.5k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "photoview"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Photoview container image. Pin a tag in production.
image = "photoview/photoview:latest"
# Host port for the Photoview web UI.
port = 8000
# Named volume for the SQLite database and generated media cache (/app/data).
data_volume = "photoview_data"
# Named volume for your photo library (/photos).
media_volume = "photoview_media"
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources. Face recognition and thumbnailing benefit from more CPU/memory.
resources = {
cpu = 1000
memory = 1024
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "photoview" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "photoview/photoview:latest" | The Photoview container image. Pin a tag in production. |
| port | number | 8000 | Host port for the Photoview web UI. |
| data_volume | string | "photoview_data" | Named volume for the SQLite database and generated media cache (/app/data). |
| media_volume | string | "photoview_media" | Named volume for your photo library (/photos). |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 1000
memory = 1024
} | The task resources. Face recognition and thumbnailing benefit from more CPU/memory. |
No variables match.
This pack stores data in 2 Docker named volumes:
photoview_dataphotoview_media
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/photoview_data/_data \ /var/lib/docker/volumes/photoview_media/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/photoview_data/_data backup:<bucket>/photoview_data rclone sync /var/lib/docker/volumes/photoview_media/_data backup:<bucket>/photoview_media
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.
Photoview is a simple and user-friendly photo gallery for people who keep their photos on their own server. It builds on top of your existing directory of photos, adding a fast web UI with a timeline, albums, map view, RAW support, video and face recognition — without moving or modifying your originals.
This pack runs Photoview as a single host-networked Nomad service using its built-in SQLite database, so there's no separate DB to run.
nomad-pack run photoview --registry=nomploy
Open http://<node-ip>:8000, create the initial user, then add a media path
pointing at /photos.
| Variable | Default | Description |
|---|---|---|
image |
photoview/photoview:latest |
Container image (pin a tag in production). |
port |
8000 |
Host port for the web UI. |
data_volume |
photoview_data |
Volume for the SQLite DB and cache (/app/data). |
media_volume |
photoview_media |
Volume for your photo library (/photos). |
resources |
1000 MHz / 1024 MB | CPU and memory (face recognition wants more). |
Mount your existing photo library at /photos (read-only is fine). The database
and generated thumbnails persist in data_volume.