> ## Documentation Index
> Fetch the complete documentation index at: https://dokulabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Configuring Options for Doku

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 connect

**Example**:

```yaml
export INIT_DB_HOST=127.0.0.1
```

**INIT\_DB\_PORT** *required*

Sets the port on which ClickHouse listens

**Example**:

```yaml
export INIT_DB_PORT=8123
```

**INIT\_DB\_DATABASE** *required*

Sets the name of the database in Clickhouse to be used by Doku

**Example**:

```yaml
export INIT_DB_DATABASE=default
```

**INIT\_DB\_USERNAME** *required*

Sets the username for authenticating with ClickHouse

**Example**:

```yaml
export INIT_DB_USERNAME=default
```

**INIT\_DB\_PASSWORD** *required*

Sets the password for authenticating with ClickHouse

**Example**:

```yaml
export INIT_DB_PASSWORD=default
```

**SQLITE\_DATABASE\_URL** *required*

Sets the location where SQLITE data is stored.

**Example**:

```yaml
export SQLITE_DATABASE_URL=file:/app/client/data/data.db
```

### Sample Environment File (.env)

```.env.example .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 connect

**Example**:

```yaml
export DOKU_DB_HOST=127.0.0.1
```

**DOKU\_DB\_PORT** *required*

Sets the port on which ClickHouse listens

**Example**:

```yaml
export DOKU_DB_PORT=9000
```

**DOKU\_DB\_NAME** *required*

Sets the name of the database in Clickhouse to be used by Doku

**Example**:

```yaml
export DOKU_DB_NAME=default
```

**DOKU\_DB\_USER** *required*

Sets the username for authenticating with ClickHouse

**Example**:

```yaml
export DOKU_DB_USER=default
```

**DOKU\_DB\_PASSWORD** *required*

Sets the password for authenticating with ClickHouse

**Example**:

```yaml
export DOKU_DB_PASSWORD=DOKU
```

**DOKU\_PRICING\_JSON\_URL**

Sets the URL of the json file containing the LLM Pricing data

**Default Value**:

```shell
https://raw.githubusercontent.com/dokulabs/ingester/main/assets/pricing.json
```

**Example**:

```yaml
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**:

```shell
10
```

**Example**:

```shell
export DOKU_DB_MAX_IDLE_CONNS=10
```

**DOKU\_DB\_MAX\_OPEN\_CONNS**

Sets the maximum number of concurrent open database connections.

**Default Value**:

```shell
20
```

**Example**:

```shell
export DOKU_DB_MAX_OPEN_CONNS=20
```

**DOKU\_DB\_RETENTION\_PERIOD**

Sets the TTL for data in Clickhouse.

**Default Value**:

```shell
6 MONTH
```

**Example**:

```shell
export DOKU_DB_RETENTION_PERIOD="6 MONTH"
```

### Sample Environment File (.env)

```.env.example .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](https://dokulabs.mintlify.site/latest/integrations/introduction.md)**
>
> Integrate your LLM Provider with Doku

> **[Connections](https://dokulabs.mintlify.site/latest/connections/intro.md)**
>
> Connect to your existing Observablity Platform


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.