Redis

The Railway Redis database service allows you to provision and connect to a Redis database with zero configuration.

Deploy

Add a Redis database to your project via the CMD + K menu or by clicking the + New button on the Project Canvas.

GIF of the Adding Database

Connect

Connect to Redis from another service in your project by referencing the environment variables made available in the Redis service:

  • REDISHOST
  • REDISUSER
  • REDISPORT
  • REDISPASSWORD
  • REDIS_URL

Connecting externally

It is possible to connect to Redis externally (from outside of the project in which it is deployed), by using the TCP Proxy which is enabled by default.

Keep in mind that you will be billed for Network Egress when using the TCP Proxy.

Image

The Redis database service uses the bitnami/redis docker image.

Modifying the Service

Tailor your Redis service to your needs by adding any variables relevant to the bitnami/redis image.


Edit this file on GitHub