Skip to main content
This guide covers all the available environment variables to fine-tune Doku according to your needs.

Doku Client

Environment Varibales

INIT_DB_HOST
required
Sets the host address of the ClickHouse server for Doku Client to connectExample:
export INIT_DB_HOST=127.0.0.1
INIT_DB_PORT
required
Sets the port on which ClickHouse listensExample:
export INIT_DB_PORT=8123
INIT_DB_DATABASE
required
Sets the name of the database in Clickhouse to be used by DokuExample:
export INIT_DB_DATABASE=default
INIT_DB_USERNAME
required
Sets the username for authenticating with ClickHouseExample:
export INIT_DB_USERNAME=default
INIT_DB_PASSWORD
required
Sets the password for authenticating with ClickHouseExample:
export INIT_DB_PASSWORD=default
SQLITE_DATABASE_URL
required
Sets the location where SQLITE data is stored.Example:
export SQLITE_DATABASE_URL=file:/app/client/data/data.db

Sample Environment File (.env)

.env
INIT_DB_HOST="127.0.0.1"
INIT_DB_PORT="8123"
INIT_DB_DATABASE="default"
INIT_DB_USERNAME="default"
INIT_DB_PASSWORD="DOKU"
SQLITE_DATABASE_URL="file:/app/client/data/data.db"

Doku Ingester

Environment Varibales

DOKU_DB_HOST
required
Sets the host address of the ClickHouse server for Doku Ingester to connectExample:
export DOKU_DB_HOST=127.0.0.1
DOKU_DB_PORT
required
Sets the port on which ClickHouse listensExample:
export DOKU_DB_PORT=9000
DOKU_DB_NAME
required
Sets the name of the database in Clickhouse to be used by DokuExample:
export DOKU_DB_NAME=default
DOKU_DB_USER
required
Sets the username for authenticating with ClickHouseExample:
export DOKU_DB_USER=default
DOKU_DB_PASSWORD
required
Sets the password for authenticating with ClickHouseExample:
export DOKU_DB_PASSWORD=DOKU
DOKU_PRICING_JSON_URL
Sets the URL of the json file containing the LLM Pricing dataDefault Value:
https://raw.githubusercontent.com/dokulabs/ingester/main/assets/pricing.json
Example:
export DOKU_PRICING_JSON_URL=https://raw.githubusercontent.com/dokulabs/ingester/main/assets/pricing.json
DOKU_DB_MAX_IDLE_CONNS
Sets the maximum number of concurrent idle database connections.Default Value:
10
Example:
export DOKU_DB_MAX_IDLE_CONNS=10
DOKU_DB_MAX_OPEN_CONNS
Sets the maximum number of concurrent open database connections.Default Value:
20
Example:
export DOKU_DB_MAX_OPEN_CONNS=20
DOKU_DB_RETENTION_PERIOD
Sets the TTL for data in Clickhouse.Default Value:
6 MONTH
Example:
export DOKU_DB_RETENTION_PERIOD="6 MONTH"

Sample Environment File (.env)

.env
DOKU_DB_HOST="127.0.0.1"
DOKU_DB_PORT="9000"
DOKU_DB_NAME="default"
DOKU_DB_USER="default"
DOKU_DB_PASSWORD="DOKU"

Integrations

Integrate your LLM Provider with Doku

Connections

Connect to your existing Observablity Platform