# Docker Compose deployment The required stack is PostgreSQL and Heimdall Central. The Agent is deployed separately on each camera-network host; the Central UI supplies a digest-pinned Agent Compose file for each site. RustFS, ntfy, Ollama, TURN, Redis and scheduled backups have separate Compose files and can be left out. ## Central and database For a new Linux server, run the interactive installer directly from the source repository; cloning the repository is not required: ```bash curl -fsSL https://sources.tordais.cc/arnaud.dartois/Heimdall/raw/branch/main/install/install-server.sh | bash ``` The installer uses the server image `eltruncho/heimdall:latest` from Docker Hub, creates a minimal Central + PostgreSQL Compose project, generates PostgreSQL and JWT secrets, and writes them to a mode-600 `.env` and secret file in the chosen installation directory. It asks which optional services to prepare and whether to start each one. Selected optional Compose files and backup scripts are fetched individually; no repository checkout is created. Integration URLs and credentials remain configured in Central's UI. The script requires an interactive terminal and reads prompts from it even when downloaded with a pipe. On Windows 10/11 with Docker Desktop in Linux-container mode, use PowerShell to download and run the matching installer without cloning the repository: ```powershell $installer = Join-Path $env:TEMP 'heimdall-install-server.ps1' Invoke-WebRequest -UseBasicParsing -Uri 'https://sources.tordais.cc/arnaud.dartois/Heimdall/raw/branch/main/install/install-server.ps1' -OutFile $installer Set-ExecutionPolicy -Scope Process Bypass -Force & $installer Remove-Item $installer ``` The execution-policy bypass applies only to the current PowerShell process; a Group Policy can still block script execution. Both installers generate secrets locally and keep them in the selected installation directory. To pin a reviewed revision, download the installer from that revision and set `HEIMDALL_SOURCE_BASE_URL` to its `raw/commit/` URL before running it; the variable also selects the optional Compose and backup files fetched by the installer. An offline installation must also provide those selected assets. The repository's `docker/docker-compose.prod.yml` is a manual alternative for operators who need a custom layout. It does not use files generated by the interactive installer. Keep `docker/.env` private (mode 600) and create a PostgreSQL password file; its value must match the password in `DATABASE_URL`. The `.env.example` file contains development credentials and must not be used unchanged for a production deployment. ```sh umask 077 mkdir -p -m 700 docker/secrets db_password="$(openssl rand -hex 32)" printf '%s' "$db_password" > docker/secrets/db_password cat > docker/.env <