# Using a PGSQL database outside of Docker?

**URL:** https://meta.discourse.org/t/using-a-pgsql-database-outside-of-docker/102679
**Category:** Self-hosting
**Created:** [November 24, 2018, 7:33pm UTC](https://meta.discourse.org/t/using-a-pgsql-database-outside-of-docker/102679 "2018-11-24T19:33:24Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 24, 2018, 7:37pm UTC](https://meta.discourse.org/t/using-a-pgsql-database-outside-of-docker/102679/2 "2018-11-24T19:37:12Z")

</div>

I would start with

> [@Configure Discourse to use a separate PostgreSQL server](https://meta.discourse.org/t/running-discourse-with-a-separate-postgresql-server/46375):
>
> Let’s say you’re using AWS RDS, or an existing PostgreSQL server managed elsewhere. It’s fairly straightforward to get Discourse to use such a setup, without needing to grant superuser privileges to anything that Discourse itself runs. Here’s how. Prerequisites Discourse requires PostgreSQL’s major version to [match what we ship with in our docker images](https://github.com/discourse/discourse_docker/blob/main/image/base/Dockerfile#L37); if you try to run on a newer or older version, it might work, but we don’t guarantee it, and if something breaks in the future, you get to …

Can’t promise it still doesn’t use Docker, but it might get you started on the right track.

---

_[View the full topic](https://meta.discourse.org/t/using-a-pgsql-database-outside-of-docker/102679)._
