Ferromagnet for Docker

1. Verify the release archive against SHA256SUMS before extracting it.
2. Load this architecture's image: docker load -i image.tar
3. Start: docker compose up -d
4. Open http://127.0.0.1:27183

No source checkout, compiler, account or registry login is required.
Choose amd64 for Intel/AMD servers; arm64 for compatible ARM servers/NAS/Pi.
This archive's compose.yaml uses only the image you loaded; it does not pull.

Discovery starts disabled with an empty index. Enable [dht] enabled = true in
ferromagnet.toml, then run docker compose up -d --force-recreate. Forward UDP
27184 to the host and allow it through the firewall. Leave discovery running
to build your index. Provider rules and normal resource limits still apply.

Keep HTTP private. From another device, use a tunnel:
ssh -N -L 127.0.0.1:27183:127.0.0.1:27183 YOUR_USER@YOUR_SERVER

For native authentication:
docker compose run --rm ferromagnet create-password --username YOUR_LOGIN --output /app/data/ferromagnet.htpasswd
Then append this to ferromagnet.toml:
[auth]
enabled = true
htpasswd_file = "data/ferromagnet.htpasswd"
Restart: docker compose up -d --force-recreate
Health checks work with or without native auth. Shared/public use also needs
HTTPS at a trusted proxy, authentication, and edge rate limits. Publishing HTTP
beyond loopback requires editing the ports binding in compose.yaml.

Connect a torrent client: follow the included DOWNLOAD-CLIENTS.md.
Put passwords in a private .env file using
the variable names passed by compose.yaml. Never put passwords in client URLs.
Client download_dir paths refer to the torrent client's filesystem.

docker compose logs --tail=100
docker compose ps

Data survives container replacement in the ferromagnet-data named volume.
For an upgrade, stop with docker compose down (WITHOUT -v), back up the volume,
config and .env, load the new image and update only the compose image version.
Keep the same directory/project name to reuse the existing named volume.
Start again with docker compose up -d. Keep the old image and matching stopped
data backup for rollback. Never run two versions against the same database.
docker compose down removes the container; down -v ALSO DELETES ALL YOUR DATA.

Third-party notices and required third-party source: /app/licenses in the image.
License and third-party overview: /app/LICENSE and /app/THIRD_PARTY.md.
