Configuring the YDB Docker container
YDB is configured via environment variables when running in Docker. When starting 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 |
---|---|---|---|
POSTGRES_USER |
string |
postgres |
User name for access via compatibility with PostgreSQL |
POSTGRES_PASSWORD |
string |
User password for access via compatibility with PostgreSQL | |
YDB_GRPC_ENABLE_TLS |
0 or 1 |
1 |
|
YDB_GRPC_TLS_DATA_PATH |
string |
/ydb_data |
Data path with TLS certificates for the grpcs:// connection |
MON_PORT |
int |
8765 |
HTTP port of Embedded UI |
GRPC_PORT |
int |
2135 |
gRPC port |
IC_PORT |
int |
19001 |
Interconnect port |
GRPC_TLS_PORT |
int |
2137 |
gRPC over TLS port |
YDB_KAFKA_PROXY_PORT |
int |
Port for connecting using the Kafka API. An empty value disables Kafka API compatibility. | |
YDB_ERASURE |
string |
none |
Erasure to use, see YDB Cluster Topology |
FQ_CONNECTOR_ENDPOINT |
string |
None |
Connection string for the connector to external sources fq-connector-go , see Federated Queries |
YDB_USE_IN_MEMORY_PDISKS |
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_DEFAULT_LOG_LEVEL |
string |
NOTICE |
Sets the logging level by default. Available values: CRIT , ERROR , WARN , NOTICE , INFO . |
YDB_ADDITIONAL_LOG_CONFIGS |
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 |
string |
None |
|
YDB_ENABLE_COLUMN_TABLES |
0 or 1 |
0 |
Enables column-oriented tables |