### Setup PostgreSQL for Magnetico Source: https://github.com/tgragnato/magnetico/blob/main/README.md Commands to create a user, database, and enable the pg_trgm extension for PostgreSQL. This is necessary for PostgreSQL integration. ```sql CREATE USER magnetico WITH PASSWORD 'magnetico'; ``` ```sql CREATE DATABASE magnetico OWNER magnetico; ``` ```sql \c magnetico ``` ```sql CREATE EXTENSION IF NOT EXISTS pg_trgm; ``` -------------------------------- ### Compile Magnetico from Source Source: https://github.com/tgragnato/magnetico/blob/main/README.md Compile Magnetico using the standard Golang toolchain. Ensure you have Go installed and the repository checked out. ```bash go install --tags fts5 . ``` -------------------------------- ### Run Magnetico with Docker (RabbitMQ) Source: https://github.com/tgragnato/magnetico/blob/main/README.md Connect Magnetico to RabbitMQ for message queuing. This command starts Magnetico with RabbitMQ integration. ```bash docker run --rm -it ghcr.io/tgragnato/magnetico:latest -d --database=amqp://localhost:5672 ``` -------------------------------- ### Run Magnetico with Docker (Bitmagnet) Source: https://github.com/tgragnato/magnetico/blob/main/README.md Integrate Magnetico with Bitmagnet for torrent indexing and search. This command starts Magnetico with Bitmagnet integration. ```bash docker run --rm -it ghcr.io/tgragnato/magnetico:latest -d --database=bitmagnet://localhost:3333/import ``` -------------------------------- ### Run Magnetico with Docker (ZeroMQ) Source: https://github.com/tgragnato/magnetico/blob/main/README.md Configure Magnetico to use ZeroMQ for messaging. This command starts Magnetico with ZeroMQ integration. ```bash docker run --rm -it ghcr.io/tgragnato/magnetico:latest -d --database=zeromq://localhost:5555 ``` -------------------------------- ### Generate Bcrypt Hash with htpasswd Source: https://github.com/tgragnato/magnetico/blob/main/README.md Use htpasswd to generate a username and bcrypt hash for password-protecting Magnetico access. The username must start with a lowercase ASCII character. ```bash $ htpasswd -bnBC 12 "USERNAME" "PASSWORD" USERNAME:$2y$12$YE01LZ8jrbQbx6c0s2hdZO71dSjn2p/O9XsYJpz.5968yCysUgiaG ``` -------------------------------- ### Run Magnetico with Docker (CockroachDB) Source: https://github.com/tgragnato/magnetico/blob/main/README.md Connect Magnetico to a CockroachDB cluster. Mount your TLS certificate directory and ensure the connection string is correct. ```bash docker run --rm -it -v :/data -p 8080:8080/tcp ghcr.io/tgragnato/magnetico:latest --addr=0.0.0.0:8080 --database=cockroach://magneticouser:magneticopass@mycluster.crdb.io:26257/magnetico?sslmode=verify-full&sslrootcert=/data/cc-ca.crt ``` -------------------------------- ### Run Magnetico with Docker (PostgreSQL) Source: https://github.com/tgragnato/magnetico/blob/main/README.md Run Magnetico using Docker with a PostgreSQL database. Ensure PostgreSQL is running and accessible. ```bash docker run --rm -it -p 8080:8080/tcp ghcr.io/tgragnato/magnetico:latest --addr=0.0.0.0:8080 --database=postgres://magnetico:magnetico@localhost:5432/magnetico?sslmode=disable ``` -------------------------------- ### Run Magnetico with Docker (SQLite) Source: https://github.com/tgragnato/magnetico/blob/main/README.md Use this command to run Magnetico with a local SQLite database. Ensure your data directory is mounted correctly. ```bash docker run --rm -it -v :/data -p 8080:8080/tcp ghcr.io/tgragnato/magnetico:latest --addr=0.0.0.0:8080 --database=sqlite3:///data/magnetico.sqlite3 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.