Add initial documentation for homelab operations, deployments, and service inventory

This commit is contained in:
2026-09-24 12:56:37 -05:00
commit 2cb7cbf0b9
7 changed files with 157 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Deploy a Docker service
Status: draft process; adjust to actual Compose layout on `freighter`.
1. Create or update the service's Compose project in its source repository. Use pinned image versions where practical. Put secrets in the host's secret mechanism, outside Git.
2. Define persistent volumes, UID/GID, restart policy, resource needs, and health check. Existing workloads have used UID/GID `1005:1005`; confirm this for the new image and its mounts.
3. Attach the appropriate existing Docker network (`homestack` or `homenet`); verify which network Traefik actually shares. Expose only necessary ports.
4. Add Traefik labels for host, entrypoint, TLS resolver, middleware, and **correct internal service port**. Verify the container and Traefik share a network; specify `traefik.docker.network` when ambiguous.
5. Validate Compose (`docker compose config`), then deploy (`docker compose up -d`) from the intended project directory. Check `docker compose ps`, health, and logs.
6. Test direct container access, then local FQDN through Traefik, then external access only if intended. A Traefik 404 suggests route discovery/rule mismatch; a gateway error suggests backend/network/port issues.
7. Add monitoring, backups, and an entry in the service inventory. Record rollback image tag and volume restore method before a major upgrade.
Do not copy a real credential, API token, or Cloudflare DNS credential into Compose tracked by Git.
+13
View File
@@ -0,0 +1,13 @@
# Deploy a Proxmox LXC
Status: draft process. Confirm defaults and storage targets on `pve`.
1. Choose LXC when the service can run in a container and does not require a full guest kernel. Record guest ID, hostname, OS version, owner, CPU, RAM, disk, and storage.
2. Create from an approved template or recorded provisioning script. Decide privileged versus unprivileged and any features (`nesting`, `keyctl`) deliberately. Avoid enabling extra privileges by default.
3. Configure bridge, address or DHCP reservation, DNS, time, and guest firewall policy. Confirm name resolution and outbound package access.
4. Add storage mounts with explicit ownership and backup handling. NFS mounts may live on the Proxmox host or in the guest; record the actual path and dependency.
5. Install the service, capture configuration path and systemd unit, and set restart behavior. Configure Alloy/log forwarding, monitoring, patch management, and guest backup.
6. For HTTP ingress, add the agreed Proxmox note metadata for Traefik discovery; verify generated route, TLS, DNS record, and backend port. Document the metadata schema after inspecting the running discovery service.
7. Test service URL, reboot persistence, backup job, and rollback. Add the guest and app to the inventory.
Example already discussed: Ollama `llama1.home`, LXC 103, Ubuntu 24.04, unprivileged, 10 vCPU/16 GB, nesting/keyctl; verify current settings before reusing them as a template.
+11
View File
@@ -0,0 +1,11 @@
# Deploy a Proxmox VM
Status: draft process. Confirm image, storage, and backup standards on `pve`.
1. Choose a VM when a separate kernel, OS isolation, or kernel/device features are needed. Record VM ID, hostname, owner, OS image, CPU/RAM, disk controller, storage and network bridge.
2. Create the guest with a supported image; enable the guest agent where suitable. Configure DHCP reservation or static address, DNS, time, SSH keys, package updates and local console access.
3. Define disks and external mounts, then record which data is captured by snapshots/backups. Check that NFS and startup dependencies are available before service start.
4. Install workload and systemd units, then configure monitoring, logs, patching, backup and restore. Add ingress via Proxmox notes only if the service is meant to be published.
5. Test application access, clean reboot, backup completion, and a rollback path. Record the VM in the inventory.
**Storage lesson:** VM 113 `tor-vpn` previously failed to boot and needed filesystem repair after corruption. A successful snapshot is not a restore test; document recovery media, filesystem check process, and backup location for each critical VM.