---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.4
alternate:
  - https://ydb.tech/docs/en/reference/docker/configuration.md
  - https://ydb.tech/docs/ru/reference/docker/configuration.md
sourcePath: en/core/reference/docker/configuration.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# Configuring the YDB Docker container

YDB is configured via environment variables when running in Docker. When [starting](https://ydb.tech/docs/en/reference/docker/start.md) the YDB Docker container with the `docker run` command, you can specify additional environment variables using the `-e` option to change the container's behavior. For more than one environment variable, specify this option multiple times. Below is the full list of supported environment variables.

## Environment variables

| Name | Type | Default  | Description |
| -- | -- | -- | -- |
| [`YDB_GRPC_ENABLE_TLS`](https://GitHub.com/ydb-platform/ydb/blob/c113fcffa7b1a20ad8dcb1b1760ae5bfa25370ca/ydb/public/tools/lib/cmds/__init__.py#L258) | `0` or `1` | `1` | Enable the `grpcs://` protocol (gRPC over TLS) |
| [`YDB_GRPC_TLS_DATA_PATH`](https://GitHub.com/ydb-platform/ydb/blob/8fefc809c83829d8d8b886e82534d009de4c8826/ydb/public/tools/lib/cmds/__init__.py#L291) | `string` | `/ydb_data` | Data path with TLS certificates for the `grpcs://` connection |
| [`MON_PORT`](https://GitHub.com/ydb-platform/ydb/blob/8dde59cd0af86737d07a1cd8ff19811a2bd2b663/ydb/tests/library/harness/kikimr_port_allocator.py#L170) | `int` | `8765` | HTTP port of [Embedded UI](../../reference/embedded-ui/index.md) |
| [`GRPC_PORT`](https://GitHub.com/ydb-platform/ydb/blob/8dde59cd0af86737d07a1cd8ff19811a2bd2b663/ydb/tests/library/harness/kikimr_port_allocator.py#L174) | `int` | `2136` | gRPC port |
| [`IC_PORT`](https://GitHub.com/ydb-platform/ydb/blob/8dde59cd0af86737d07a1cd8ff19811a2bd2b663/ydb/tests/library/harness/kikimr_port_allocator.py#L179) | `int` | `19001` | [Interconnect](../../concepts/glossary.md#interconnect) port |
| [`GRPC_TLS_PORT`](https://GitHub.com/ydb-platform/ydb/blob/8dde59cd0af86737d07a1cd8ff19811a2bd2b663/ydb/tests/library/harness/kikimr_port_allocator.py#L183) | `int` | `2135` | gRPC over TLS port |
| [`YDB_KAFKA_PROXY_PORT`](https://github.com/ydb-platform/ydb/blob/be585b61d649a49fd32e91d9ceeee7e893068a60/ydb/public/tools/lib/cmds/__init__.py#L362) | `int` | | Port for connecting using the [Kafka API](../../reference/kafka-api/index.md). An empty value disables Kafka API compatibility. |
| [`YDB_ERASURE`](https://GitHub.com/ydb-platform/ydb/blob/8fefc809c83829d8d8b886e82534d009de4c8826/ydb/public/tools/lib/cmds/__init__.py#L50) | `string` | `none` | Erasure to use, see [YDB Cluster Topology](../../concepts/topology.md) |
| [`FQ_CONNECTOR_ENDPOINT`](https://GitHub.com/ydb-platform/ydb/blob/c113fcffa7b1a20ad8dcb1b1760ae5bfa25370ca/ydb/public/tools/lib/cmds/__init__.py#L261) | `string` | `None` | Connection string for the connector to external sources `fq-connector-go`, see [Federated query](../../concepts/query_execution/federated_query/index.md) |
| [`YDB_USE_IN_MEMORY_PDISKS`](https://GitHub.com/ydb-platform/ydb/blob/c113fcffa7b1a20ad8dcb1b1760ae5bfa25370ca/ydb/public/tools/lib/cmds/__init__.py#L230) | `0` or `1` | `0` | Makes all data volatile and stored only in RAM. Currently, saving data by disabling this option is supported only on x86_64 processors or virtual machines emulating them. |
| [`YDB_PDISK_SIZE`](https://github.com/ydb-platform/ydb/blob/b1c590828b222c839dedecd8e6e79413ef5b7eec/ydb/tests/library/harness/kikimr_config.py#L23-L27) | `string` | `64GB` | The size of the file for storing data in the `/ydb_data` directory used by the running container. It can be specified as a number in bytes or with a suffix: `KB`, `MB`, or `GB` (for example, `64GB`). |
| [`YDB_DEFAULT_LOG_LEVEL`](https://GitHub.com/ydb-platform/ydb/blob/b1c590828b222c839dedecd8e6e79413ef5b7eec/ydb/tests/library/harness/kikimr_config.py#L73) | `string` | `NOTICE` | Sets the logging level by default. Available values: `CRIT`, `ERROR`, `WARN`, `NOTICE`, `INFO`. |
| [`YDB_ADDITIONAL_LOG_CONFIGS`](https://GitHub.com/ydb-platform/ydb/blob/b1c590828b222c839dedecd8e6e79413ef5b7eec/ydb/tests/library/harness/kikimr_config.py#L48) | `string` | `None` | Sets additional logging levels for specified ydb components in format: `component`:`level`. If you need to enter multiple levels, then enter them separated by commas. |
| [`YDB_FEATURE_FLAGS`](https://GitHub.com/ydb-platform/ydb/blob/69a57074e4c259aea0bbb9a735c5ed821743629c/ydb/public/tools/lib/cmds/__init__.py#L395) | `string` | `None` | Comma-separated list of [experimental features](https://GitHub.com/ydb-platform/ydb/blob/69a57074e4c259aea0bbb9a735c5ed821743629c/ydb/core/protos/feature_flags.proto) YDB |
| [`YDB_ENABLE_COLUMN_TABLES`](https://GitHub.com/ydb-platform/ydb/blob/69a57074e4c259aea0bbb9a735c5ed821743629c/ydb/tests/library/harness/kikimr_config.py#L86) | `0` or `1` | `0` | Enables [column-oriented tables](../../concepts/datamodel/table.md#column-oriented-tables) |
| [`YDB_PREINITSCRIPTS_DIR`](https://github.com/ydb-platform/ydb/blob/e7065254821ac3093d8135a76145c9a09e3631e2/.github/docker/files/initialize_local_ydb#L14) | `string` | `/preinit.d` | Path to the [pre-init scripts](./init-scripts.md) directory |
| [`YDB_INITSCRIPTS_DIR`](https://github.com/ydb-platform/ydb/blob/e7065254821ac3093d8135a76145c9a09e3631e2/.github/docker/files/initialize_local_ydb#L13) | `string` | `/init.d` | Path to the [init scripts](./init-scripts.md) directory |
