Initial commit: PFI fleet inventory, stacks, tooling, and backup pipeline
Captures the full workspace state built up to this point:
- CLAUDE.md + README.md describing conventions and the four-host fleet
(ana-ml2, ana-docker, nh3-docker, esh-docker-vm).
- Per-host notes under servers/<host>/ with ssh-target fallback files
and latest system-details snapshots (two in-compose credential leaks
scrubbed; the upstream compose files still need to move those to .env).
- scripts/: server_inspect.sh (read-only remote diagnostic),
refresh-server-info.sh (dir-driven discovery + snapshot capture with
validation warnings), add-host.sh, sync-stacks.sh (pull
compose/conf trees), deploy-stack.sh (push with per-file diff + prompt).
- stacks/: canonical compose for backrest, beszel, dozzle, llama-swap,
rest-server-ana, rest-server-nh3, vllm-qwen3, plus the retired
infinity reference. All use the .env-driven + traefik-net + homepage
label pattern.
- configs/restic/ana-docker/: first resticprofile config + pre-backup
hook (Synapse pg_dump, Seafile mysqldump, Vaultwarden SQLite); templates
for the other three hosts to come.
- docs/pfi/: general infrastructure reference carried over.
- .gitignore excludes .env, stacks-mirror/, and assorted secret/state
filenames to prevent re-leaks on later commits.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# rest-server (NH3 Synology) — restic backup target for the fleet.
|
||||
#
|
||||
# Deploys into Synology Container Manager on 10.100.50.50. Data lives on
|
||||
# a Btrfs shared folder so it gets Synology snapshots + optional
|
||||
# replication to a sibling share if you configure one later.
|
||||
#
|
||||
# Auth model:
|
||||
# --private-repos : every URL path must start with /<username>/ and the
|
||||
# HTTP basic-auth user must match. One user per host.
|
||||
# Per-host repos are strictly isolated.
|
||||
# --append-only : on-disk data can be ADDED but not REMOVED or REWRITTEN.
|
||||
# A compromised host can't delete its own history.
|
||||
# Prune requires disabling this (see README).
|
||||
#
|
||||
# Credentials come from /data/.htpasswd — see README for how to populate
|
||||
# it. That file is mounted read-only into the container.
|
||||
#
|
||||
# All tunables live in .env — edit that, not this file.
|
||||
|
||||
services:
|
||||
rest-server:
|
||||
image: restic/rest-server:${REST_SERVER_VERSION}
|
||||
container_name: rest-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${REST_PORT}:8000"
|
||||
volumes:
|
||||
- ${DATA_DIR}:/data
|
||||
environment:
|
||||
- OPTIONS=--private-repos --append-only --prometheus ${EXTRA_OPTIONS:-}
|
||||
- TZ=${TZ:-America/Los_Angeles}
|
||||
# rest-server stores repos under /data and looks for /data/.htpasswd
|
||||
# automatically — no extra bind mount needed as long as the htpasswd
|
||||
# file is created inside DATA_DIR before startup.
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8000/metrics >/dev/null || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
Reference in New Issue
Block a user