tidy up notes
This commit is contained in:
15 files changed
+669
-2078
No files matched your search
+57
-116
@@ -4,137 +4,78 @@ id: home-server.deployment
|
||||
type: reference
|
||||
scope: [jupiter, portainer, github, stack-deployment, secrets]
|
||||
sensitivity: private-infrastructure
|
||||
last_reviewed: "2026-10-26"
|
||||
last_reviewed: "2026-10-27"
|
||||
sources:
|
||||
- kind: owner-report
|
||||
reference: "AirVPN local downloads and public authenticated qBittorrent UI live; Ultra.cc/rclone retired; encrypted download-state/secret backups not yet added, 2026-10-26"
|
||||
reference: "Portainer Git/PAT/manual deployment 2026-10-06; Authentik deployed 2026-10-16; downloads deployed 2026-10-26; ingress runbook completed 2026-10-27"
|
||||
- kind: repository
|
||||
repository: jupiter-stacks
|
||||
revision: working-tree
|
||||
base_revision: 631e4fdfa4c7122e5eff38e11b070c17ff7a4a2a
|
||||
paths:
|
||||
- stacks/downloads/docker-compose.yml
|
||||
- stacks/downloads/README.md
|
||||
- stacks/sonarr/docker-compose.yml
|
||||
- stacks/radarr/docker-compose.yml
|
||||
- stacks/prowlarr/docker-compose.yml
|
||||
- stacks/traefik/docker-compose.yml
|
||||
- kind: repository
|
||||
repository: jupiter-stacks
|
||||
revision: 026cfa58b601165342b278401183c5fed5a50db2
|
||||
paths:
|
||||
- stacks/homarr/docker-compose.yml
|
||||
- stacks/authentik/docker-compose.yml
|
||||
- stacks/authentik/blueprints/jupiter.yaml
|
||||
- stacks/authentik/.env.example
|
||||
- kind: owner-report
|
||||
reference: "Portainer GitHub/main/PAT configuration, environment management and manual pull/redeploy workflow, 2026-10-06"
|
||||
- kind: owner-report
|
||||
reference: "No independent credential recovery; operational rules not established, 2026-10-06"
|
||||
- kind: owner-report
|
||||
reference: "Authentik fully deployed with all listed application integrations; Authelia retired; independent recovery custody unchanged, 2026-10-16"
|
||||
- kind: repository
|
||||
repository: jupiter-stacks
|
||||
revision: d09df456ad331b8beb9a40615114ea8aae2dced5
|
||||
paths:
|
||||
- stacks/authentik/docker-compose.yml
|
||||
- stacks/authentik/blueprints/jupiter.yaml
|
||||
- stacks/authentik/.env.example
|
||||
- stacks/beszel/docker-compose.yml
|
||||
- stacks/gitea/docker-compose.yml
|
||||
- stacks/immich/docker-compose.yml
|
||||
- stacks/paperless-ngx/docker-compose.yml
|
||||
related: [home-server.reference, home-server.host, home-server.portainer, home-server.authentication, home-server.backups, home-server.operations, home-server.notes, home-server.downloads]
|
||||
update_triggers: [deployment-workflow-change, repository-change, credential-rotation, rollback-policy-change]
|
||||
unknowns:
|
||||
- github-pat-scopes-and-expiration
|
||||
- post-deployment-health-criteria
|
||||
revision: 12fb1b96e01fc062fdce4c216f11eb5d7ce716ed
|
||||
paths: [stacks/traefik/docker-compose.yml, stacks/authentik/docker-compose.yml, stacks/downloads/docker-compose.yml, stacks/notes/docker-compose.yml]
|
||||
related: [home-server.portainer, home-server.authentication, home-server.downloads, home-server.notes, home-server.networking, home-server.backups]
|
||||
update_triggers: [deployment-workflow-change, repository-change, credential-rotation]
|
||||
unknowns: [github-pat-scopes-and-expiration, general-health-gates-and-approval-policy]
|
||||
---
|
||||
|
||||
# Deployment
|
||||
|
||||
| Setting | Source / workflow |
|
||||
| --- | --- |
|
||||
| Stack definitions | <https://github.com/jayo60013/jupiter-stacks> |
|
||||
| Git ref | `main` |
|
||||
| Repository authentication | GitHub PAT configured in Portainer |
|
||||
| Environment values/secrets | Portainer stack environment settings; AirVPN keys use root-restricted host secret files |
|
||||
| Deployment | Manually pull/redeploy each affected stack in Portainer |
|
||||
| Portainer itself | [Host shell script](portainer.md), not a managed Compose stack |
|
||||
|
||||
```text
|
||||
Compose change -> push main -> manual Portainer pull/redeploy -> running stack
|
||||
```mermaid
|
||||
---
|
||||
config:
|
||||
themeCSS: |
|
||||
text,.nodeLabel { fill:var(--infra-text);color:var(--infra-text); }
|
||||
.flowchart-link { stroke:var(--infra-line); }
|
||||
marker path { fill:var(--infra-line);stroke:var(--infra-line); }
|
||||
.infraClient rect { fill:var(--infra-client-fill);stroke:var(--infra-client-stroke);rx:8px;ry:8px; }
|
||||
.infraEdge rect { fill:var(--infra-edge-fill);stroke:var(--infra-edge-stroke);rx:8px;ry:8px; }
|
||||
.infraService rect { fill:var(--infra-service-fill);stroke:var(--infra-service-stroke);rx:8px;ry:8px; }
|
||||
---
|
||||
flowchart LR
|
||||
accTitle: Manual Git-backed stack deployment
|
||||
accDescr: Pushing configuration does not deploy it; Portainer must pull and redeploy before runtime checks.
|
||||
Git["Push main<br/>jupiter-stacks"]:::infraClient
|
||||
Portainer["Portainer<br/>manual pull / redeploy"]:::infraEdge
|
||||
Runtime["Running containers<br/>check routes + health"]:::infraService
|
||||
Git --> Portainer --> Runtime
|
||||
```
|
||||
|
||||
A Git commit is not deployment proof. Installed host Compose version is not
|
||||
proof of Portainer's Compose implementation.
|
||||
- Source: <https://github.com/jayo60013/jupiter-stacks>, branch `main`; GitHub PAT in Portainer.
|
||||
- Stack values/secrets live in Portainer; AirVPN keys are root-restricted host files.
|
||||
- Git updates do not populate bind-mounted files or application databases.
|
||||
- Native Compose version does not establish Portainer's Compose implementation.
|
||||
- Host apt, fstab/RAID, systemd and Mercury nginx are outside this workflow.
|
||||
|
||||
Recovering deployment requires Portainer state or independently retrievable
|
||||
repository credentials and stack environment values. [Portainer backups](backups.md)
|
||||
exist; credential/state restoration is untested. Do not put secret values in
|
||||
this site or Git.
|
||||
## Prerequisites / order
|
||||
|
||||
No independent recovery arrangement exists for the PAT or stack secrets.
|
||||
Rollback, health-check gates, approval rules and UI-versus-Git drift policy
|
||||
are not established; do not assume permission to deploy, stop or delete services.
|
||||
| Before | Then | Detail |
|
||||
| --- | --- | --- |
|
||||
| Mounted `/data`, Docker, required networks | Workloads | Preserve bind paths, named volumes and secrets |
|
||||
| Downloads stack creates `downloads` | Arr + Traefik | [Download state/redeployment](downloads.md#state-and-redeployment) |
|
||||
| Gitea creates `notes_build` | Notes | [Notes deployment](notes.md#deployment) |
|
||||
| Secure Authentik + apply host blueprint | Public authentication | [Authentication](authentication.md#state-secrets) |
|
||||
| Independent SSH session | Replace Portainer | [Standalone deployment](portainer.md#deployment) |
|
||||
|
||||
## Local downloads deployment / recovery
|
||||
## Ingress transport deployment and rollback
|
||||
|
||||
The owner confirms [qBittorrent/Gluetun through AirVPN](downloads.md) live on
|
||||
2026-10-26, including both Arr import workflows and the authenticated public UI.
|
||||
Use the linked stack runbook for reconstruction, not the retired seedbox.
|
||||
Current routing convention: [Networking](networking.md#listener-and-trust-boundaries).
|
||||
Owner confirmed cutover complete **2026-10-27**.
|
||||
|
||||
Deploy Downloads before its consumers: it creates the external `downloads`
|
||||
network used by Sonarr, Radarr, Prowlarr and Traefik. Prepare the bind-mounted
|
||||
files under `/data/qbittorrent/{config,defaults}` and
|
||||
`/data/gluetun/secrets` first. AirVPN private/preshared keys are root-restricted
|
||||
host files mounted as Compose secrets, not Portainer environment values;
|
||||
the tunnel address, country and reserved peer port are stack environment values.
|
||||
1. Keep SSH and configuration backups; ensure WireGuard owns `10.0.0.2`.
|
||||
2. Deploy Traefik's HTTPS defaults, restricted WireGuard listener and trusted forwarded headers **before** changing app routes.
|
||||
3. Redeploy public routers as `https,wireguard` without router TLS labels; retain local HTTPS-only routes and HSTS proxy-scheme handling.
|
||||
4. Recreate Portainer independently; include external football's router. Recreate Gluetun/qBittorrent together; preserve Authentik names used by [backup hooks](backups.md#consistency-hooks).
|
||||
5. From Mercury, check each host/path at HTTP `10.0.0.2:8081` with original HTTPS headers. Do not follow fallback redirects; verify callbacks/HSTS, non-Mercury denial and LAN HTTPS.
|
||||
6. Switch Mercury **last**: install the shared upstream plus all three nginx site files together; `sudo nginx -t && sudo systemctl reload nginx`.
|
||||
7. Check public login/callbacks, WebSockets, registry and media responses.
|
||||
|
||||
Arr client credentials, categories, library roots, remote-path mappings and
|
||||
hardlink settings are database/UI state, not reproduced by pulling Compose.
|
||||
The public UI also depends on the persisted qBittorrent Server domains setting,
|
||||
the host-side Authentik blueprint and Traefik's `downloads` network attachment.
|
||||
Recreate Gluetun and qBittorrent together when replacing their shared namespace.
|
||||
- Transport rollback: restore Mercury's previous **sites and upstream together** (`https://jupiter_backend` + `10.0.0.2:443`), syntax-check, reload.
|
||||
- Leave migrated Jupiter routes in place: HTTPS still works. If reverting Traefik too, restore app TLS labels before removing entrypoint defaults.
|
||||
- Host staging/backups: `~/jupiter-wireguard-http` on both hosts; Mercury's rollback files under `backup/{conf.d,sites-available}`. Not independent recovery storage.
|
||||
|
||||
Full isolation exercises remain outstanding, and the new client state/defaults
|
||||
and VPN secrets are not yet backed up. See [Backups](backups.md#local-downloads-recovery-gap).
|
||||
## Reconstruction limits
|
||||
|
||||
## Notes deployment
|
||||
|
||||
The [Notes reference](notes.md) covers `notes_builder`, `notes_web`, host bind
|
||||
mounts, the signed Gitea webhook and the shared static volume. Deploy Gitea before
|
||||
Notes: Gitea owns the `notes_build` network that the Notes stack consumes.
|
||||
|
||||
## Authentik configuration surfaces
|
||||
|
||||
The owner reports the Authelia-to-Authentik migration complete. Rebuilding it
|
||||
requires more than pulling Compose:
|
||||
|
||||
| Surface | Required state |
|
||||
| --- | --- |
|
||||
| Portainer environment | Authentik persistent key, database password, eight provider client secrets; matching application secrets/overrides |
|
||||
| Host files | Copy repository `stacks/authentik/blueprints/jupiter.yaml` into `/data/authentik/blueprints`; Git checkout alone does not populate this bind mount |
|
||||
| Authentik database | Administrator, MFA enrolment, group memberships, applied providers/application policies |
|
||||
| Application databases/UIs | Beszel, Gitea, Immich and Portainer OIDC setup/account linking |
|
||||
| Application Compose | Dozzle, Homarr, Paperless and Wardrowbe OIDC settings; five proxy-protected routers use `authentik@docker` |
|
||||
|
||||
Homarr uses the same `OIDC_HOMARR_SECRET` in both stack environments. Its
|
||||
[account-linking steps](authentication.md#homarr) include verified email and
|
||||
duplicate-account cleanup; redeploying Compose alone does not complete linking.
|
||||
|
||||
For initial setup, keep `AUTHENTIK_PUBLIC_ROUTING=false` and access the
|
||||
loopback-published `127.0.0.1:9000` privately, for example through SSH forwarding.
|
||||
Secure the administrator account and prepare MFA, groups and blueprint policy
|
||||
before enabling public routing. Enable routing and establish working OIDC
|
||||
account links before disabling any local application login; Beszel/Paperless
|
||||
flags default to preserving it. The retired Authelia service is not a
|
||||
replacement recovery path.
|
||||
|
||||
Redeploying the Authentik stack alone does not copy changed host blueprints
|
||||
or reproduce database-backed application settings. Keep provider/client secrets
|
||||
matched across both sides. Preserve deployed Authentik container names or update
|
||||
the [Backrest hooks](backups.md) when recreating containers.
|
||||
|
||||
Host apt packages, fstab, RAID assembly, systemd units and Mercury nginx are
|
||||
outside the Compose deployment workflow.
|
||||
- Restore Portainer state or independently retrieve Git credentials + stack secrets: [Backups](backups.md#recovery-limits).
|
||||
- Authentik: copy blueprint into its host bind mount; restore identity/MFA and application-managed OIDC state. Compose alone is insufficient.
|
||||
- Football is externally managed; its Compose definition is not in `jupiter-stacks`.
|
||||
- Portainer image pin caveat: [Portainer](portainer.md#deployment).
|
||||
- General approvals/drift policy and full-host recovery order remain undefined.
|
||||
Reference in new issue
Block a user