|
| 1 | +--- |
| 2 | +LinkTitle: Railway Redis |
| 3 | +Title: Redis on Railway |
| 4 | +alwaysopen: false |
| 5 | +categories: |
| 6 | +- docs |
| 7 | +- integrate |
| 8 | +- oss |
| 9 | +- rs |
| 10 | +description: Deploy and host Redis on Railway. The Railway Redis database template allows you to provision and connect to a Redis database with zero configuration. |
| 11 | +group: cloud-service |
| 12 | +summary: Railway simplifies your infrastructure stack from servers to observability with a single, scalable, easy-to-use platform. The Railway Redis database template allows you to provision and connect a Redis database with zero configuration, alongside your other services. Scale your application with Redis on Railway with highly performant networking and intuitive scaling. |
| 13 | +type: integration |
| 14 | +weight: 7 |
| 15 | +--- |
| 16 | + |
| 17 | +[Railway](https://railway.com?utm_medium=integration&utm_source=docs&utm_campaign=redis) simplifies your infrastructure stack from databases to servers to observability with a single, scalable, easy-to-use platform. Companies of all sizes deploy full-stack applications on Railway and benefit from highly performant networking, intuitive vertical and horizontal scaling, and isolated environments with pull request deploys. Railway's template marketplace includes thousands of one-click deploy templates, including Redis. |
| 18 | + |
| 19 | +{{< image filename="/images/rc/railway-redis-canvas.png" >}} |
| 20 | + |
| 21 | +This is a guide to deploying Redis on Railway, using the official template. |
| 22 | + |
| 23 | +## Deploy Redis to Railway |
| 24 | + |
| 25 | +Navigate to a new Railway project at [railway.com/new](https://railway.com/new?utm_medium=integration&utm_source=docs&utm_campaign=redis). Add a Redis database to your project via the `ctrl / cmd + k` menu, and type `Redis`. |
| 26 | + |
| 27 | +You can also deploy it via the [template](https://railway.com/deploy/redis) from the Railway template marketplace. |
| 28 | + |
| 29 | +{{< image filename="/images/rc/railway-redis-add.gif" >}} |
| 30 | + |
| 31 | +Upon deployment, you will have a Redis service running in your project, deployed from the [redis](https://hub.docker.com/_/redis) Docker image. |
| 32 | + |
| 33 | +Since the deployed container is pulled from the [redis](https://hub.docker.com/_/redis) image in Docker Hub, you can modify the deployment based on the [instructions in Docker Hub](https://hub.docker.com/_/redis). |
| 34 | + |
| 35 | +## Connecting to your Railway Redis Service |
| 36 | + |
| 37 | +It is possible to connect to Redis externally by using the [TCP Proxy](https://docs.railway.com/deploy/exposing-your-app#tcp-proxying?utm_medium=integration&utm_source=docs&utm_campaign=redis) which is enabled by default. |
| 38 | + |
| 39 | +## Backup and Monitoring |
| 40 | + |
| 41 | +Especially for production environments, performing backups and monitoring the health of your data is essential. Consider adding: |
| 42 | + |
| 43 | +- **Backups**: Automate regular backups to ensure data recovery in case of failure. We suggest checking out Railway's native [Backups](https://docs.railway.com/reference/backups?utm_medium=integration&utm_source=docs&utm_campaign=redis) feature. |
| 44 | + |
| 45 | +- **Observability**: Implement monitoring for insights into performance and health of your Redis cluster. You can integrate a Redis exporter for Prometheus, although we do not provide a specific template at this time. |
| 46 | + |
| 47 | +## Additional Resources |
| 48 | + |
| 49 | +- [Railway Redis guide](https://docs.railway.com/guides/redis?utm_medium=integration&utm_source=docs&utm_campaign=redis) |
| 50 | +- [Railway platform features](https://railway.com/features?utm_medium=integration&utm_source=docs&utm_campaign=redis) |
0 commit comments