Files
esh-pfi-infrastructure/stacks/beszel/.env.example
T
vh e376d0aec9 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.
2026-04-20 14:29:48 -07:00

44 lines
1.4 KiB
Bash

# beszel stack tunables. Copy to `.env` on each server before deploying.
#
# cp .env.example .env
# # edit for this host
# docker compose up -d
#
# Same compose.yaml on both servers — COMPOSE_PROFILES picks the role.
# Image version — pin for reproducibility (`latest` for edge)
BESZEL_VERSION=latest
# ------------------------------------------------------------------------
# On ana-docker (hub + local agent):
# COMPOSE_PROFILES=hub,agent
# BESZEL_PORT=8090
# BESZEL_HUB_KEY=<copy from hub "Add system" dialog after first boot>
#
# On ana-ml2 (agent only):
# COMPOSE_PROFILES=agent
# BESZEL_HUB_KEY=<same key as above>
# ------------------------------------------------------------------------
COMPOSE_PROFILES=hub,agent
# ---- Hub-only -----------------------------------------------------------
# Host port for the web UI (container listens on 8090 internally).
BESZEL_PORT=8090
# ---- Agent-only ---------------------------------------------------------
# Host port the agent listens on. The hub SSHes into agents over this port.
BESZEL_AGENT_PORT=45876
# Hub's SSH public key — paste from the hub UI on first run.
# Grab it by clicking "Add System" → copy the key shown in the dialog.
BESZEL_HUB_KEY=
# Extra filesystems to track beyond the root mount, comma-separated.
# Examples:
# on ana-ml2: /tank
# on ana-docker: /mnt/backup,/mnt/compose
BESZEL_EXTRA_FS=