Installation
eodia insights needs two services alongside it: a PostgreSQL database for its catalog
(people, permissions, sources, questions, dashboards…) and Trino, the engine that runs every
query. The repository provides two Compose files: docker-compose.yml for development,
docker-compose.prod.yml for production.
For development
Section titled “For development”Prerequisites: Rust (stable), Node.js 22 or later, pnpm 9 and Docker. On Windows, the server is
built with Rust’s GNU toolchain (see
apps/server/README.md).
git clone https://github.com/eodia/insights.git && cd insightsdocker compose up -d # catalog, Trino and two demo databasespnpm installpnpm dev:server # the server, on port 4100 (API, OPA, MCP and job queue)pnpm --filter @eodia/web dev # the interface, on port 3100pnpm dev:server amounts to running cargo run --release -p eodia-server in apps/server: the
first build takes a few minutes, the next ones a few seconds.
Open http://localhost:3100. On first start, a demo instance is created: an online shop on PostgreSQL, a customer service on MongoDB, questions, a dashboard and two accounts. See Getting started.
| Service | Address | Role |
|---|---|---|
| Interface | http://localhost:3100 | Next.js; relays /api/* and /mcp to the server |
| Server | http://localhost:4100 | REST /api/v1, authentication, OPA endpoint, MCP on /mcp |
| Trino | http://localhost:58080 | the query engine |
| Catalog | localhost:55435 | the application’s PostgreSQL |
| Demo PostgreSQL | localhost:55434 | the boutique database |
| Demo MongoDB | localhost:57017 | the support database |
The Docker services are published on 127.0.0.1 only. The MCP server has no process of its own:
it is the server, at http://localhost:4100/mcp.
In production
Section titled “In production”A single image, built by the repository’s Dockerfile (or published on Docker Hub,
eodia/insights), contains the server — the API, the OPA endpoint, MCP and the job queue, in a
single Rust binary — and the interface. docker-compose.prod.yml puts it together with
PostgreSQL, Trino and Caddy, which obtains the HTTPS certificate.
Prerequisites: a server with Docker and Compose v2, a domain name pointing to it, and ports 80 and 443 open. Trino alone needs a few gigabytes of memory (a 2 GB heap in the provided configuration).
1. The .env file
Section titled “1. The .env file”Next to docker-compose.prod.yml, create a .env file with the four required values:
DOMAIN=bi.example.comSECRET_KEY=<openssl rand -hex 32>OPA_SECRET=<openssl rand -hex 24>DB_PASSWORD=<a strong password>| Variable | Role |
|---|---|
DOMAIN | the public domain; Caddy obtains its Let’s Encrypt certificate |
SECRET_KEY | 64 hexadecimal characters: encrypts the source passwords |
OPA_SECRET | the secret placed in the path of the OPA endpoint, which only Trino calls |
DB_PASSWORD | the password of the catalog’s PostgreSQL |
Optional variables — SSO, e-mail, copilot, cache… — are listed at the top of
docker-compose.prod.yml and in Environment variables.
2. Start
Section titled “2. Start”docker compose -f docker-compose.prod.yml up -d --buildOn first start, the server applies the catalog migrations. Then open https://bi.example.com:
the first screen creates the administrator account.
What Caddy publishes
Section titled “What Caddy publishes”| Path | Service |
|---|---|
/api/* | the server, port 4100 (REST, authentication, copilot over SSE) |
/mcp | the server, port 4100 (MCP) |
| everything else | the interface |
/internal/* | nothing: Caddy responds 404 |
The OPA endpoint (/internal/opa/<secret>/…) is never exposed: Trino calls it directly on the
Docker network.
What next?
Section titled “What next?”- Getting started: the demo, a source, a question, a dashboard.
- Docker: the image, its roles and the production services.
- Single sign-on: connect your OpenID Connect provider.
eodia insights is free software by Eodia.