I have a deployed Nextjs project. I want to set up a Redis instance in a volume and then access it internally from the Nextjs site i.e. it does not need to be exposed to the internet.
I have created a volume as per the docs with flyctl volumes create redis_server
and added the following to the fly.toml
file:
[mounts]
source = "redis_server"
destination = "/data"
I am not sure what to do beyond this. Docs are not as explicit for someone who is doing it for the first time.
How do I actually create the redis instance?
How do I access it in my Nextjs project?