# Discourse and Postgres DB installation

**URL:** <https://meta.discourse.org/t/discourse-and-postgres-db-installation/186171>\
**Category:** Self-hosting\
**Created:** [April 9, 2021, 6:18am UTC](https://meta.discourse.org/t/discourse-and-postgres-db-installation/186171 "2021-04-09T06:18:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundaram\_Das](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sundaram_das/32/214603_2.png) [@Sundaram\_Das](https://meta.discourse.org/u/Sundaram_Das)\
**Post date:** [April 9, 2021, 6:18am UTC](https://meta.discourse.org/t/discourse-and-postgres-db-installation/186171/1 "2021-04-09T06:18:57Z")

</div>

Hi Team,

I have a basic question on Discourse self-hosting. We are planning to use Discourse as self-hosting for our organization. What I have noticed, when we install Discourse automatically Postgress SQL installed in the same machine. Just wanted to check do I need to pay a license for Postgress SQL? Also, is the Data and Application will be in my Organization Domain and no one from outside can access those details?

Regards,  
Sundaram

---

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [April 9, 2021, 12:01pm UTC](https://meta.discourse.org/t/discourse-and-postgres-db-installation/186171/2 "2021-04-09T12:01:02Z")

</div>

PostgreSQL is an open source software and doesn’t impose any licence fee for usage

> **[PostgreSQL: License](https://www.postgresql.org/about/licence/)**

You can install discourse for internal use but You’ll have to make changes as required to block external access.  
For example, You may have to configure firewall and optionally a reverse proxy to prevent access from outside the organization.

---

<div class="post-metadata">

**Author:** ![Sundaram\_Das](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sundaram_das/32/214603_2.png) [@Sundaram\_Das](https://meta.discourse.org/u/Sundaram_Das)\
**Post date:** [April 9, 2021, 12:18pm UTC](https://meta.discourse.org/t/discourse-and-postgres-db-installation/186171/3 "2021-04-09T12:18:06Z")

</div>

Thank you. So discourse will take care of Postgres installation and taking backups right. Also, wanted to know how discourse and Postgres will behave once the data is huge for a forum.

---

<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:** [April 9, 2021, 12:55pm UTC](https://meta.discourse.org/t/discourse-and-postgres-db-installation/186171/4 "2021-04-09T12:55:49Z")

</div>

They behave quite well. I manage several fairly high volume sites with standard installations (though I usually use the 2 container configuration).
