TREK — a self-hosted travel and trip planner with real-time collaboration: itineraries, maps, places and packing lists. Deployed as a single host-networked Nomad service with SQLite storage and a data + uploads volume.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 14.6k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "trek"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The TREK container image. Pin a tag in production.
image = "mauriceboe/trek:latest"
# Host port for the TREK web UI.
port = 3000
# Key used to encrypt stored secrets (e.g. integration API keys). Use a long random string (openssl rand -base64 32). CHANGE THIS and keep it stable.
encryption_key = "change_me_encryption_key_to_a_long_random_value"
# Comma-separated list of allowed origins (CORS). Leave blank to allow the default; set to your public URL(s) in production.
allowed_origins = ""
# Container timezone.
timezone = "UTC"
# Named volume for TREK's SQLite database and data.
data_volume = "trek_data"
# Named volume for uploaded files.
uploads_volume = "trek_uploads"
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# Resources for the TREK task.
resources = {
cpu = 500
memory = 512
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "trek" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "mauriceboe/trek:latest" | The TREK container image. Pin a tag in production. |
| port | number | 3000 | Host port for the TREK web UI. |
| encryption_key set me | string | "change_me_encryption_key_to_a_long_random_value" | Key used to encrypt stored secrets (e.g. integration API keys). Use a long random string (openssl rand -base64 32). CHANGE THIS and keep it stable. |
| allowed_origins | string | "" | Comma-separated list of allowed origins (CORS). Leave blank to allow the default; set to your public URL(s) in production. |
| timezone | string | "UTC" | Container timezone. |
| data_volume | string | "trek_data" | Named volume for TREK's SQLite database and data. |
| uploads_volume | string | "trek_uploads" | Named volume for uploaded files. |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 500
memory = 512
} | Resources for the TREK task. |
No variables match.
This pack stores data in 2 Docker named volumes:
trek_datatrek_uploads
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/trek_data/_data \ /var/lib/docker/volumes/trek_uploads/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/trek_data/_data backup:<bucket>/trek_data rclone sync /var/lib/docker/volumes/trek_uploads/_data backup:<bucket>/trek_uploads
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.
TREK is a self-hosted travel and trip planner with real-time collaboration — itineraries, maps, places, and packing lists for your trips.
This pack runs TREK as a single host-networked Nomad job. It stores everything in SQLite
(in the trek_data volume), with uploads in trek_uploads — no external database is
required.
nomad-pack run trek --registry=nomploy
Then open http://<node-ip>:3000 and create the first account.
| Variable | Default | Notes |
|---|---|---|
port |
3000 |
Web UI host port |
encryption_key |
change me | Encrypts stored integration keys — keep stable |
allowed_origins |
(blank) | CORS origins; set to your public URL in production |
timezone |
UTC |
Container timezone |
Change encryption_key to a long random value before deploying anywhere real and keep it
stable across deploys. Optional integrations (OIDC/SSO, Unsplash, map/places API keys)
can be added later via environment — see the TREK docs.
Data persists in the trek_data and trek_uploads named volumes.