tidy up notes

This commit is contained in:
John Gatward committed 2026-10-27 12:21:10 +00:00
1 parent 8e21e897a5
commit b17e750121
15 files changed
+669 -2078

No files matched your search

+30 -62
View File
@@ -2,81 +2,49 @@
schema_version: 1
id: home-server.portainer
type: reference
scope: [jupiter, portainer, deployment, configuration-state]
scope: [jupiter, portainer, configuration-state]
sensitivity: private-infrastructure
last_reviewed: "2026-10-16"
last_reviewed: "2026-10-27"
sources:
- kind: owner-report
reference: "Deployed container, ~/portainer_start.sh and updated Backrest plan, 2026-10-06"
- kind: owner-report
reference: "GitHub main/PAT access, Portainer environment values, manual redeployment and container inspection, 2026-10-06"
- kind: owner-report
reference: "Authentik fully deployed with all listed app integrations, including Portainer, 2026-10-16"
- kind: live-inspection
reference: "Image 2.45.3, mounts, publication, restart policy and routers inspected 2026-10-27"
- kind: repository
repository: jupiter-stacks
revision: d09df456ad331b8beb9a40615114ea8aae2dced5
paths:
- stacks/portainer/portainer_start.sh
- stacks/authentik/blueprints/jupiter.yaml
related: [home-server.reference, home-server.storage, home-server.authentication, home-server.backups, home-server.deployment]
update_triggers: [script-change, portainer-upgrade, state-migration, backup-plan-change]
unknowns: [local-hostname-dns-resolution, successful-state-and-secret-restore]
revision: working-tree
base_revision: 12fb1b96e01fc062fdce4c216f11eb5d7ce716ed
reference: "Image correction 2.45.1 -> 2.45.3 uncommitted at review"
paths: [stacks/portainer/portainer_start.sh]
related: [home-server.authentication, home-server.deployment, home-server.backups]
update_triggers: [script-change, portainer-upgrade, state-migration]
unknowns: [local-hostname-dns-resolution, host-script-and-boot-invocation, successful-state-restore]
---
# Portainer
## Deployment
Managed by handwritten `~/portainer_start.sh`, **not a Compose stack**.
Reference script: [portainer_start.sh](https://github.com/jayo60013/jupiter-stacks).
- Standalone shell script, **not Compose**: `stacks/portainer/portainer_start.sh`; supplied host copy `~/portainer_start.sh`.
- Working tree pins **2.45.3**, matching live; committed `12fb1b9` still pins **2.45.1**. Correct before using a fresh clone.
- Script stops/removes then recreates the container. Host copy/boot invocation not revalidated.
| Setting | Deployed value |
| --- | --- |
| Image | `portainer/portainer-ce:2.45.1` |
| Container | `portainer` |
| Restart policy | `always` |
| Network | External Docker network `traefik` |
| State | Host `/data/portainer` -> container `/data` |
| Docker API | `/var/run/docker.sock` bind mount |
| Host publication | TCP `9123` -> container `9000` |
| HTTPS routers | `portainer.umbra.mom`, `portainer.local.umbra.mom` |
| Traefik backend | HTTP; container port `9000` |
| TLS | `https` entrypoint; `letsencrypt` resolver |
| Image / container | `portainer/portainer-ce:2.45.3` / `portainer` |
| Restart / network | `always` / external `traefik` |
| State | `/data/portainer:/data`; not old `portainer_data` volume |
| Docker API | `/var/run/docker.sock` bind |
| Direct port | `9123:9000`; bypasses Traefik middleware |
| Public router | `portainer.umbra.mom`; `https,wireguard`; no router TLS labels |
| Local router | `portainer.local.umbra.mom`; HTTPS-only, explicit TLS/`letsencrypt` |
| Backend | HTTP `9000`; no forward-auth middleware |
Script stops/removes the existing container, then recreates it; bind-mounted
state persists. Requires Docker, the `traefik` network, and mounted `/data`.
Supplied routers attach no forward-auth middleware. Local router does not
establish local DNS resolution.
- Replace from independent SSH, not Portainer's UI; require mounted `/data`, Docker and `traefik`.
- Back up state first; preserve image/mounts/network/restart/port. Never run two instances against the same state; a stopped container is not a DB backup.
- Shared routing convention: [Networking](networking.md#listener-and-trust-boundaries).
## Authentication
## Persisted state
Native OIDC through [Authentik](authentication.md); client ID `portainer`;
issuer `https://auth.umbra.mom/application/o/portainer/`.
Both public and local HTTPS hostnames are registered as strict callbacks.
The updated Authentik blueprint grants `jay` direct access, with other users
assigned manually per application instead of through the retired `development`
group. Deployment of this access-policy migration is unconfirmed. Admission
does not itself assign Portainer administrator permissions.
OAuth configuration is database/UI state, not configured by the container
startup script. The owner reports the integration complete; local-login and
account-linking settings were not supplied. Preserve `/data/portainer` for
both stack management and authentication configuration.
## Stack management
Portainer fetches <https://github.com/jayo60013/jupiter-stacks>, branch `main`,
using a GitHub PAT. Stack environment values/secrets are managed in Portainer.
Repository changes are pulled/redeployed manually; committing alone does not
update containers. See [deployment](deployment.md).
## Backups
Daily 03:00 UTC; Google Drive; last four snapshots. Backrest reads
`/userdata/portainer` from host `/data/portainer`.
- Before snapshot: stop `portainer`; timeout `120s`; errors fatal.
- Snapshot end/error: start `portainer`; restart errors ignored.
- Restore remains untested; script itself is outside the listed backup paths.
The former `portainer_data` named volume is not used by the deployed container.
- `/data/portainer` holds stack management, environment secrets, Git credentials and database/UI OAuth settings.
- Native OIDC/callbacks and access policy: [Authentication](authentication.md#native-oidc).
- Git pull/redeploy workflow: [Deployment](deployment.md).
- Backup schedule, hooks and restore limits: [Backups](backups.md).