Discourse with DO managed Redis

I am planning a production setup for my Discourse installation and I would like to externalise database and redis.

In discourse_docker/web_only.yml at master · discourse/discourse_docker · GitHub I see variables for Postgress, allowing to configure it to be external.

For Redis it’s only DISCOURSE_REDIS_HOST. Example value is data.

What would be the right values for managed Redis? Are there any other variables and settings I should know about to make it work?

3 Likes

You can also set the redis db. There is an example in the multisite topic.

Edit: but Rafael has a much better answer!

You need to set the following env variables for DO managed Redis:

 DISCOURSE_REDIS_HOST: falcoland-redis-do-user-435229-0.a.db.ondigitalocean.com
 DISCOURSE_REDIS_PASSWORD: vp39d0dpy8dxn68n
 DISCOURSE_REDIS_PORT: 25061
 DISCOURSE_REDIS_USE_SSL: true
6 Likes