You can configure RedisInsight with system environment variables.

To configure RedisInsight with environment variables:

  1. Follow the instructions to set environment variables for your operating system:

  2. Set the environment variables.

  3. Restart RedisInsight.

RedisInsight environment variables

The following environment variables can be set to configure RedisInsight:

RIPORT

Description: Which port should RedisInsight listen on.

Type: Number

Default: 8001

RIHOST

Description: Which host should RedisInsight bind to.

Type: String

Default: "0.0.0.0"

RIHOMEDIR

Description: Sets the storage directory where RedisInsight stores application data (such as local database, log files and snapshot files).

Type: String

Default: "~/.redisinsight" on desktop, "/db" on docker.

RILOGDIR

Description: Sets the logging storage directory where RedisInsight stores application logs.

Type: String

Default: "~/.redisinsight" on desktop, "/db" on docker.

RILOGLEVEL

Description: Configures the log level of the application. Possible values are - "DEBUG", "INFO", "WARNING", "ERROR” and "CRITICAL".

Type: String

Default: "WARNING"

REDISINSIGHT_PORT (DEPRECATED)

Description: Which port should RedisInsight listen on.

Type: Number

Default: 8001

Deprecated in: v1.9.0

REDISINSIGHT_HOST (DEPRECATED)

Description: Which host should RedisInsight bind to.

Type: String

Default: "0.0.0.0"

Deprecated in: v1.9.0

REDISINSIGHT_HOME_DIR (DEPRECATED)

Description: Sets the storage directory where RedisInsight stores application data (such as local database, log files and snapshot files).

Type: String

Default: "~/.redisinsight" on desktop, "/db" on docker.

Deprecated in: v1.9.0

LOG_DIR (DEPRECATED)

Description: Sets the logging storage directory where RedisInsight stores application logs.

Type: String

Default: "~/.redisinsight" on desktop, "/db" on docker.