Skip to main content

Configuration

Version: V2
View Markdown

This reference covers the settings listed in the configuration reference for this Core revision. Each table identifies where a value takes effect. A native process reads its environment. Compose uses the repository’s .env for substitution only where a service explicitly references that variable. For a process setting absent from the stock service mapping, add it to that service’s environment in your fork and recreate the service. Keep credentials out of source control. Compose service definitions · Example environment

Datastores​

SettingConsumer and default
DATABASE_KG_URLThe Query API, KG migration and workers need the KG connection. Projections use it to write graph entities and context evidence. Optional for the standalone projections binary. Compose supplies the container DSN to all four.
DATABASE_TIMESCALE_URLHost-side Timescale client, tests and migration helper. The example environment points to host port 5433. Tests requiring the database can skip when unset.
DATABASE_URLRequired event-store DSN for ingestion, projections and the Timescale migration job. Compose sets the container DSN.
REDIS_URLThe local example uses redis://localhost:6379; Compose supplies redis://redis:6379 to the indexer.
REDIS_LEADER_KEY, REDIS_LEADER_TTL_SECShared Rust configuration defaults to ingestion_leader_lock and 15 seconds. Stock Compose does not forward either. The current Rust ingester acquires no Redis leader lock. Run one ingester per store and scope.

Use the actual service credentials in place of USER and PASSWORD. The host maps Timescale to a different port so both servers can run:

ConnectionHost processProcess on Compose network
KGpostgresql://USER:PASSWORD@localhost:5432/intuition_kgpostgresql://USER:PASSWORD@postgres-kg:5432/intuition_kg
Event storepostgresql://USER:PASSWORD@localhost:5433/intuition_timescalepostgresql://USER:PASSWORD@timescale:5432/intuition_timescale

Datastore port mappings · Shared configuration parser · Ingestion startup · Timescale migration helper

Ingestion​

Stock Compose forwards the four deployment settings and optional last block to the indexing profile. The four required settings in the example environment start empty.

SettingConsumer and default
INTUITION_RPC_URLRequired chain RPC, reachable from the indexer.
CHAIN_IDRequired numeric chain ID. Both the manifest and the running generated network client need it.
MULTIVAULT_CONTRACT_ADDRESSRequired address of the MultiVault proxy to index.
MULTIVAULT_START_BLOCKRequired inclusive start block. Use the deployment block for full history.
MULTIVAULT_END_BLOCKOptional inclusive last block. Empty follows the head.
RINDEXER_MANIFEST_PATHNative binary defaults to ./rindexer.yaml. The image sets /rindexer/rindexer.yaml; its entrypoint renders the template before launch.
METRICS_PORTIndexer metrics and health listener defaults to 9091. Compose fixes and publishes 9091.
RINDEXER_HEALTH_PORTThe entrypoint substitutes this into the manifest. Compose supplies 8080 inside the container. Only the separate metrics listener is published by default.

Manifest template · Container entrypoint · Network client · Indexer image

Projections​

SettingConsumer and default
SURREAL_DB_URLCompose explicitly sets an empty value to select the no-op graph sink. Keep it empty for Postgres-only Core. The standalone parser falls back to ws://localhost:8000 when the variable is absent.
USE_TYPED_READERCompose forwards it with default true, selecting the typed event tables including URI context. The standalone binary defaults to false.
ENABLED_PROJECTIONSOptional comma-separated allowlist. A nonempty list takes precedence over the denylist. Set on the projections process or add a Compose environment mapping.
DISABLED_PROJECTIONSOptional comma-separated denylist. Both lists start empty in the binary. When this setting is missing or empty, Compose supplies funnel_tracker,user_activity_batch,vault_state:dual,vault_holders_index:dual.
PROJECTIONS_BATCH_SIZE, PROJECTIONS_POLL_INTERVAL_MSProcess defaults of 500 rows and 1000 milliseconds. Neither variable is forwarded by stock Compose.
PROJECTIONS_METRICS_PORTProcess default 9092. Compose fixes and publishes 9092. Check liveness at /health/live.

Projection parser and selection rules · Reader selection · Compose projection settings

Query API and Explorer​

SettingConsumer and default
API_PORTQuery API process defaults to 3000. Stock Compose sets the container listener to 3000.
API_AUTHCompose forwards public-read by default. Graph reads are public and writes need a writable key. In gated mode graph reads also require a key; /health and /api/schema remain public. Reserve open for a local disposable node where unattributed writes are intentional.
API_ALLOWED_ORIGINSForwarded comma-separated CORS origin allowlist. Empty allows all origins. Include your Explorer origin when restricting access.
API_ATOM_SEMANTIC_READS_ENABLEDForwarded, default false. Adds raw input, identity, classification, context, resolution and display fields to atom reads.
VITE_API_URLExplorer API base. The client defaults to http://localhost:3000 when unset. Supply the intended base when building for another host.
VITE_ATOM_SEMANTIC_READS_ENABLEDExplorer build/start flag, default false. Enables the presentation of semantic fields. Enable the API response fields first and rebuild or restart the Explorer with its own setting.

Query API parser · API path and write permissions · Explorer client · Presentation flag · Explorer build arguments

Workers​

The following are worker process defaults. Of these settings, stock Compose forwards the processing scope and the two IID flags. The remaining entries need explicit process configuration to override.

SettingDefault and effect
WORKERS_PORTBase health port 4110. Default parse, classification and enrichment listeners use 4110, 4112 and 4111 respectively. Each serves /healthz.
WORKERS_CONCURRENCY4 concurrent items per worker.
WORKERS_LEASE_MS, WORKERS_MAX_ATTEMPTS60000 ms per stage lease and 5 attempts per stage. Expired claims can be recovered.
WORKERS_PARSE_REMOTE_FETCHtrue enables fetching remote input during parsing. Set false for isolated operation.
WORKERS_PARSE_ALLOW_HTTP, WORKERS_PARSE_ALLOW_PRIVATE_NETWORKSBoth false. Plain HTTP and requests to private network targets are blocked by default.
WORKERS_PARSE_IPFS_GATEWAY_BASE_URLOptional IPFS gateway override, unset by default.
WORKERS_PROCESSING_SCOPEfull by default. music, podcasts and music-and-podcasts restrict enrichment after classification.
WORKERS_IID_READ_ENABLEDfalse. Enables IID inspection and supplies registry and ladder bindings to the workers. The entrypoint checks the installed package versions when enabled.
WORKERS_IID_RESOLUTION_ENABLEDfalse. Independently permits provider resolution for IID enrichment plans. Enable worker reads and verify the bindings before enabling resolution.

Worker IID reads, worker resolution and API semantic reads are three independent settings. Turning one on leaves the others at their configured values. Explorer presentation is a fourth, client-side choice. Worker settings · Worker entrypoint · Enrichment decisions

Atom services and provider credentials​

SettingConsumer and default
ATOM_SERVICES_PORTStateless processing service, default 4010. Stock Compose fixes the container listener to 4010.
ATOM_SERVICES_AUTH_TOKENOptional service bearer token, unset by default. To require it, explicitly pass it into the atom-services process or add a service environment mapping. Adding it only to the host .env does not require a bearer token in the stock container. The service exempts /health, /ready and /metrics. Query API keys govern a different service.
SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRETOptional Spotify credential pair. Configure both to use authenticated Spotify enrichment.
GITHUB_TOKEN, ETHERSCAN_API_KEY, BRANDFETCH_API_KEYOptional credentials for their respective providers. Public GitHub data can be fetched without a token.
OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEYReserved search or embedding credentials, blank in the example environment. The stock processing services have no active enrichment wiring for these keys.

Compose forwards the Spotify pair, GitHub, Etherscan and Brandfetch credentials to the workers and atom services. They start empty. A provider can skip an item or return less data when a credential is absent. Service parser · Service bearer middleware · Provider mappings · Example credentials