# Discourse with DO managed Redis

**URL:** https://meta.discourse.org/t/discourse-with-do-managed-redis/153776
**Category:** Development
**Created:** [June 4, 2020, 6:21am UTC](https://meta.discourse.org/t/discourse-with-do-managed-redis/153776 "2020-06-04T06:21:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AAverin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaverin/32/181948_2.png) [@AAverin](https://meta.discourse.org/u/AAverin)
#### Post date: [June 4, 2020, 6:21am UTC](https://meta.discourse.org/t/discourse-with-do-managed-redis/153776/1 "2020-06-04T06:21:51Z")

</div>

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

In [discourse\_docker/samples/web\_only.yml at master · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/blob/master/samples/web_only.yml) 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?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [June 5, 2020, 3:47am UTC](https://meta.discourse.org/t/discourse-with-do-managed-redis/153776/2 "2020-06-05T03:47:10Z")

</div>

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

Edit: but Rafael has a much better answer!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 5, 2020, 4:18am UTC](https://meta.discourse.org/t/discourse-with-do-managed-redis/153776/3 "2020-06-05T04:18:10Z")

</div>

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

```
