Nomploy Nomad Packs

← All packs

babybuddy v0.1.0

Productivity

Baby Buddy — a self-hosted tracker to help caregivers log a baby's sleep, feedings, diaper changes, tummy time and more, with charts and timers. Deployed as a single host-networked Nomad service (LinuxServer image) with SQLite storage.

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

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

1 task http 8000 1 volume image lscr.io/linuxserver/babybuddy:latest tracks :latest image bumped today
Variables 12
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Baby Buddy container image (LinuxServer). Pin a tag in production.
image = "lscr.io/linuxserver/babybuddy:latest"

# Host port for the Baby Buddy web UI.
port = 8000

# Comma-separated origins allowed to submit forms. Include your public URL (e.g. https://babybuddy.example.com).
csrf_trusted_origins = "http://localhost:8000"

# Container timezone.
timezone = "UTC"

# User ID the container runs as (file ownership on the config volume).
puid = 1000

# Group ID the container runs as.
pgid = 1000

# Named volume for Baby Buddy config and the SQLite database.
config_volume = "babybuddy_config"

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

# Resources for the Baby Buddy task.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"babybuddy"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"lscr.io/linuxserver/babybuddy:latest"
The Baby Buddy container image (LinuxServer). Pin a tag in production.
port number
8000
Host port for the Baby Buddy web UI.
csrf_trusted_origins string
"http://localhost:8000"
Comma-separated origins allowed to submit forms. Include your public URL (e.g. https://babybuddy.example.com).
timezone string
"UTC"
Container timezone.
puid number
1000
User ID the container runs as (file ownership on the config volume).
pgid number
1000
Group ID the container runs as.
config_volume string
"babybuddy_config"
Named volume for Baby Buddy config and the SQLite database.
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 Baby Buddy task.
Back up this pack

This pack stores data in one Docker named volume: babybuddy_config

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/babybuddy_config/_data

rclone (sync to S3/R2)

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

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

babybuddy

Baby Buddy is a self-hosted tracker for caregivers — log a baby's sleep, feedings, diaper changes, tummy time, pumping and more, with timers, charts and daily summaries.

This pack runs Baby Buddy as a single host-networked Nomad job (the maintained LinuxServer image) with SQLite storage in the babybuddy_config volume — no external database is required.

Quick start

nomad-pack run babybuddy --registry=nomploy

Then open http://<node-ip>:8000 and sign in with the default account admin / admin — change the password immediately.

Configuration

Variable Default Notes
port 8000 Web UI host port
csrf_trusted_origins http://localhost:8000 Add your public URL(s), comma-separated
timezone UTC Container timezone
puid / pgid 1000 File ownership on the config volume

When serving Baby Buddy on a domain, add that URL to csrf_trusted_origins or form submissions (login, logging entries) will be rejected. Data persists in the babybuddy_config named volume.