Skip to main content

Redis environment variables

Reference documentation for Redis-related environment variables.

Redis environment variables available for use with Self-hosted Retool deployments.

Only configure environment variables when needed. You can configure many environment variables from your organization's Settings rather than directly editing your deployment's configuration file.

You must restart your instance after setting any variables for them to take effect.

REDIS_DB

number

The database number for read and write operations, between 0 and 15.

Default value is 0.

Example
REDIS_DB=0

REDIS_HOST

string

The hostname of the Redis reader endpoint that connects the Redis instance as a caching layer.

Example
REDIS_HOST=redis-retool

REDIS_PASSWORD

string

The password for the Redis instance.

Example
REDIS_PASSWORD=password

REDIS_PORT

number

The port number of the Redis reader endpoint that connects the Redis instance as a caching layer.

Default value is 6379.

Example
REDIS_PORT=6379

REDIS_TLS

boolean

Whether to use TLS for the Redis connection.

Default value is false.

Example
REDIS_TLS=true