Skip to main content

Installation

Use the quick start for the shortest path to a local instance. This page explains what it installs, where data lives, and which values you must preserve. Use deployment for a public server.

Choose an installation route​

RouteUse it whenInstructions
Installer scriptYou want published images and generated database/JWT credentials.Quick start.
Clone the distribution repositoryYou want to inspect or customize Compose and pin image tags.Manual workflow below.
Run components from sourceYou are changing the application.Local development.

The distribution repository contains deployment files. It does not contain all component source code. A normal installation pulls frontend and backend images; it does not require Go or Angular build tools.

Docker Compose stack​

ServiceContainer namePurposeDefault host access
frontendmaglane_frontendnginx serves Angular and forwards /api requests.http://localhost:5050.
backendmaglane_backendGo API, workers, jobs, rotating listeners.API at 127.0.0.1:5656.
postgresmaglane_dbDurable resources and committed results.Loopback 127.0.0.1:5434.
redismaglane_redisRuntime queues, result handoff, coordination.Loopback 127.0.0.1:8946.
backend-volume-initCompose-generatedOne-time ownership repair for backend data/cache.No application port; exits after success.
searxngmaglane_searxngOptional SearXNG instance for the SearXNG plugin. Starts only with COMPOSE_PROFILES=searxng.None; the backend uses http://searxng:8080.
searxng-configCompose-generatedWrites the optional SearXNG settings before searxng starts.No network; exits after success.

The backend also publishes rotating listener ports 20000-20100 over TCP and UDP. Use the specific allocated listener port for proxy clients. The UI and API ports are not proxy listener ports.

Inside Compose, the backend reaches postgres:5432 and redis:6379. A local Go process uses the published host ports instead. localhost inside a container means that container, not your host computer.

Required secrets/config​

Replace the example PROXY_ENCRYPTION_KEY before migration or startup. Keep the exact value stable. It encrypts managed proxy credentials in PostgreSQL, keys credential-sensitive route fingerprints, and protects queue credentials when queue encryption is enabled. It also protects stored alert destination secrets. Changing it is not a routine password rotation and makes older protected values unreadable.

For manual installation, replace the example database password too. Installer scripts generate strong database credentials. Set matching DB_USERNAME, DB_PASSWORD, and DB_NAME for the selected database. Editing initialization variables does not change the password inside an already initialized PostgreSQL volume.

JWT_SECRET can stay empty for a single instance. The backend generates and persists /app/data/jwt_secret in backend_data. Installers instead generate an explicit secret in .env. All backend replicas must share an explicit JWT secret. Preserve the selected signing key during recovery.

Redis queue credentials are plaintext by default for checker throughput. Keep PROXY_QUEUE_ENCRYPT_CREDENTIALS=false unless you deliberately choose and measure the encrypted mode. Protect database/Redis access, volumes, and backups as described in security.

Local clone workflow​

From the parent directory where you want the distribution checkout:

git clone https://github.com/maglane-io/maglane.git
cd maglane
cp .env.example .env

Open .env in your editor and replace PROXY_ENCRYPTION_KEY and DB_PASSWORD. Then create the schema and start the stack:

docker compose run --rm backend --migrate-only
docker compose up -d
docker compose ps

Open http://localhost:5050 and follow first login. If startup fails, read docker compose logs --tail=100 backend and the troubleshooting guide. A volume initializer that exited with code zero is expected.

Persisted data​

Named volumeContainsKeep it for
postgres_dataPostgreSQL data.Resources, membership, history, and committed evidence.
redis_dataRedis persistence, including append-only data.Queued work, pending results, coordination/session state.
backend_datasettings.json and generated JWT key when used.Instance configuration and signing-key continuity.
backend_browser_cacheChromium cache.Avoiding repeated browser downloads/cache setup. It can be recreated.
searxng_config, searxng_cacheOptional SearXNG settings and cache.Nothing; both are rewritten or rebuilt on start.

Compose prefixes actual volume names with the project name. A default new installation uses maglane_* volumes. Preserve the existing project selection during updates and restores. Container replacement retains named volumes; docker compose down -v removes them. Use backup and recovery before a reset.

Installer script notes​

Installers create a new maglane directory by default, ask for the stable proxy encryption key, download both Compose files, migrate, and start the base stack. Downloading the production overlay does not automatically enable it.

Common overrides include MAGLANE_INSTALL_DIR, component image/tag settings, MAGLANE_REPO_OWNER, MAGLANE_REPO_NAME, and MAGLANE_REPO_REF. See environment variables for the distinction between installer inputs and backend environment.

For LAN access, use the server's frontend address and configure CORS_ALLOWED_ORIGINS for the exact scheme, hostname, and port you open. For internet access, continue with deployment.