Install Melodee (planned supported workflow)
Availability: this development starter is not an installable release. Stop
if versions.lock.json is not qualified. Only maintainers performing disposable
integration work should use an explicit --candidate flag. No published image
or system version is inferred from source versions.
Prerequisites
- Linux single host, Docker Engine and Compose v2.24+ (proposed minimum; qualify on supported amd64 and arm64 hosts before release). Python 3.11+, Git and a shell.
- A DNS hostname reachable by browsers and clients, and a certificate trusted by every client. Use a private LAN/VPN hostname or owned DNS; no public exposure until the security review and deployment qualification are complete.
- A mounted library and inbound area with enough room for normalized media, temporary assets and backups. Determine real resource requirements through system benchmarks; no minimum RAM or library capacity is claimed yet.
- A sign-in method: the starter enables WebAuthn using the selected hostname. Optional SMTP is configured separately. A writable registered Storage Volume is required for protected passkey objects.
Prepare
git clone https://github.com/melodee-project/melodee.git
cd melodee
python3 scripts/system.py configure --hostname music.example.test
configure generates a private .env, a random URL-safe database password and
local directory scaffolding. It never starts services or overwrites an existing
.env. Replace the example hostname with yours. The edge binds to loopback
by default; for a LAN deployment set MELODEE_BIND_IP to a specific LAN/VPN
address and apply host firewall restrictions. Do not use port-forwarding to the
internet as an initial installation strategy. The starter supports HTTPS on
443 with an operator-provisioned certificate, not automated ACME or HTTP.
Place the matching full certificate chain and private key at
secrets/tls/fullchain.pem and secrets/tls/privkey.pem (key mode 0600).
An internal CA is acceptable only if its trust chain is installed on all clients,
including the CLI image by a qualified mechanism. Never disable TLS validation.
Configure the actual mounted library/inbound paths in .env; do not silently
create replacement directories for a missing NAS. configure creates the default
local paths ./data/library, ./data/inbound, ./secrets/tls and ./cli-work.
If the defaults are not the intended storage, edit .env and mount the real paths
before running preflight; preflight checks existence and writability but cannot
detect a mount that disappeared behind an existing directory. See
configuration.
Install
python3 scripts/system.py preflight
python3 scripts/system.py install
python3 scripts/system.py status
The helper detects existing Compose containers, volumes and networks by project
label and refuses to adopt them. After a partial failure, run
python3 scripts/system.py install --resume to continue the same project; it
re-applies the API migration command (expected to be idempotent), verifies
migrate --check --require-current, then starts the stack. If a database volume
belongs to a different project name, the helper warns instead of silently
creating an empty database: changing COMPOSE_PROJECT_NAME does not migrate
data. This is a candidate implementation requiring real-stack qualification. Do
not retry a failed first install by deleting its database or media. Never use
docker compose down -v as troubleshooting.
status and stop deliberately bypass the qualification gate, so a broken
installation with missing TLS files or unreadable storage can still be inspected
and shut down. start, pull and bootstrap require the full gate. See
operations.
Storage, bootstrap and authentication
- Verify mounted paths and register/initialize Storage Volumes using the selected API's documented procedure. The exact fresh-install, pre-auth volume-registration workflow is an open integration blocker; mounting a directory alone does not register it. Do not bypass it with ad-hoc SQL.
- On the Docker host, run
python3 scripts/system.py bootstrap --name 'Administrator'in a private interactive terminal. The API prints a one-time challenge. - Complete the challenge at
https://<hostname>/auth/bootstrap. Enroll a passkey or establish a verified email contact using configured SMTP. - Run
python3 scripts/system.py smoke. Inspect administration, authentication, storage readiness and client compatibility. Import synthetic media first.
No default account, password, test credential, public signup or implicit admin access is supplied. The bootstrap command is deliberately separate from startup and should never be executed in CI logs or with output redirected to a file.
Maintenance
Use operations, backup and recovery and
upgrades. Keep .env, the exact pinned release manifest, every
registered volume and the database backed up and protected.