Learn how to deploy Redis with persistence enabled to Hop in seconds
Hop is a deployment platform that makes it easy to deploy any application. If something can run as a Docker image, it can run on Hop. That includes Redis!Redis is available on Docker Hub, and it’s also available as a Preset on Hop which means that all the configuration is done for you.
You can use the hop fwd CLI command to connect to your new Redis deployment from your local machine. Redis runs on port 6379 so make sure to select that when forwarding.Once the forwarding is set up, you can open another terminal and connect to Redis using the forwarded port using redis-cli.
Let’s say you want to allow your API deployment to access your new Redis instance. Luckily, Hop makes this easy. You can create an Internal Gateway to give your Redis deployment an internal domain, such as redis.hop. You can then use that domain within any other deployment in your project, and it’ll point to your Redis deployment.