# External database ENV VARs not documented (external PG Port, external Redis ENV VARs)

**URL:** <https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879>\
**Category:** Self-hosting\
**Created:** [27.Июнь.2018 15:19:44 UTC](https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879 "2018-06-27T15:19:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zorrobyte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zorrobyte/32/99837_2.png) [@zorrobyte](https://meta.discourse.org/u/zorrobyte)\
**Post date:** [27.Июнь.2018 15:19:44 UTC](https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879/1 "2018-06-27T15:19:44Z")

</div>

Greetings,

I can’t post in the Sysadmin category.

I can configure an external DB using:

```
DISCOURSE_DB_USERNAME
DISCOURSE_DB_PASSWORD
DISCOURSE_DB_HOST
DISCOURSE_DB_NAME

```

But I couldn’t find:

```
DISCOURSE_DB_PORT (External PostgreSQL Port)
DISCOURSE_REDIS_HOST
DISCOURSE_REDIS_USERNAME
DISCOURSE_REDIS_PASSWORD
DISCOURSE_REDIS_NAME (which database, 0,1,2,3, etc)

```

I’m an engineer at Compose/IBM and I’m attempting to setup Discourse using our production-ready, replicated databases. I’d like to run a web\_only instance with external Redis & PostgreSQL

I also couldn’t find configuration parameters for failover support:  
[https://help.compose.com/docs/postgresql-on-compose#section-for-ops-and-admins](https://help.compose.com/docs/postgresql-on-compose#section-for-ops-and-admins)

We supply two URIs “portals” for connection failover. I don’t have a ton of time to dig through the Discourse codebase and see which client driver you are using.

Lastly, we use SSL (using valid LE certs) for both Redis and PostgreSQL. Is your app configured for SSL support?

Thanks!

P.S. I’m reaching out personally, not officially from IBM/Compose. I enjoy Discourse and have been considering writing an article on how to configure Discourse using our services:  
[https://www.compose.com/articles/](https://www.compose.com/articles/)

---

_[View the full topic](https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879)._
