Redis

Simple server

A single Redis server is recommended, in self-hosted setups anything more is overkill. You can configure this through the environment variable REDIS_URLwhich should point to the fully qualified url of the Redis installation, e.g: redis://redis:6379

Advanced

If your Redis connection requires more configuration it can be provided through a base64 encoded JSON connection options object. Using this method you can configure multiple hosts, for example:

{"sentinels": [{"host": "sentinel-0","port":26379}, {"host": "sentinel-1","port":26379}],"name": "mymaster"}

Can be base64 encoded as the following config:

REDIS_URL=ioredis://eyJzZW50aW5lbHMiOlt7Imhvc3QiOiJzZW50aW5lbC0wIiwicG9ydCI6MjYzNzl9LHsiaG9zdCI6InNlbnRpbmVsLTEiLCJwb3J0IjoyNjM3OX1dLCJuYW1lIjoibXltYXN0ZXIifQ==

Available options are documented in ioredis.