# How to setup PostgreSQL with Nexus Repository Pro for permanent storage

**URL:** <https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [August 20, 2021, 11:57am UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160 "2021-08-20T11:57:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kashif.shoaib](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kashif.shoaib](https://community.sonatype.com/u/kashif.shoaib)\
**Post date:** [August 20, 2021, 11:57am UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/1 "2021-08-20T11:57:34Z")

</div>

Hi I am using Nexus repository Pro and want to setup similar on ec2 instead of EKS as described in [Single Data Center On-Premises Deployment Example Using Kubernetes](https://help.sonatype.com/repomanager3/resiliency-and-high-availability/single-data-center-on-premises-deployment-example-using-kubernetes).  
Is there any tutorial or guide to setup postgresql with nexus repository for storage.

---

<div class="post-metadata">

**Author:** ![dsawa](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/dsawa/32/729_2.png) [@dsawa](https://community.sonatype.com/u/dsawa)\
**Post date:** [August 20, 2021, 1:11pm UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/2 "2021-08-20T13:11:29Z")

</div>

Hi Kashif,  
Unfortunately at this point in time we only have documentation on how to run it in K8s environments, but the general idea is the same. We plan to include more configuration options in our documentation soon. Please let us know if you face any problems.

---

<div class="post-metadata">

**Author:** ![venkatasykam](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@venkatasykam](https://community.sonatype.com/u/venkatasykam)\
**Post date:** [November 10, 2021, 5:23pm UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/3 "2021-11-10T17:23:23Z")

</div>

I am also looking for the documentation to setup nexus on kubernetes with postgresql. Can someone please share the document if any?

---

<div class="post-metadata">

**Author:** ![dsawa](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/dsawa/32/729_2.png) [@dsawa](https://community.sonatype.com/u/dsawa)\
**Post date:** [November 10, 2021, 5:34pm UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/4 "2021-11-10T17:34:54Z")

</div>

@venkatasykam have you seen the link posted in the first message of this topic? That should be what you are looking for.

---

<div class="post-metadata">

**Author:** ![venkatasykam](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@venkatasykam](https://community.sonatype.com/u/venkatasykam)\
**Post date:** [November 10, 2021, 5:39pm UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/5 "2021-11-10T17:39:32Z")

</div>

@dsawa I have gone thru the URL. As per the document we need to install/configure postgres on seperate VM, not running as container ???

---

<div class="post-metadata">

**Author:** ![dsawa](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/dsawa/32/729_2.png) [@dsawa](https://community.sonatype.com/u/dsawa)\
**Post date:** [November 10, 2021, 5:46pm UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/6 "2021-11-10T17:46:35Z")

</div>

Yes, it will be running outside of Nexus Repository, but it’s up to you how you want to host your PostgreSQL server: SaaS, container, VM, bare metal.

---

<div class="post-metadata">

**Author:** ![venkatasykam](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@venkatasykam](https://community.sonatype.com/u/venkatasykam)\
**Post date:** [November 10, 2021, 11:02pm UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/7 "2021-11-10T23:02:08Z")

</div>

@dsawa ok, thanks alot for clarification. I will try that.

---

<div class="post-metadata">

**Author:** ![venkatasykam](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@venkatasykam](https://community.sonatype.com/u/venkatasykam)\
**Post date:** [November 11, 2021, 4:03am UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/8 "2021-11-11T04:03:13Z")

</div>

@dsawa

I have a doubt, what is Nexus Pro ?? This postgresql configuration will only work with Nexus Pro?

My understanding is, if we purchase license from sonatype nexus, then that will be Nexus Pro… am I correct ??

---

<div class="post-metadata">

**Author:** ![dsawa](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/dsawa/32/729_2.png) [@dsawa](https://community.sonatype.com/u/dsawa)\
**Post date:** [November 11, 2021, 8:54am UTC](https://community.sonatype.com/t/how-to-setup-postgresql-with-nexus-repository-pro-for-permanent-storage/7160/9 "2021-11-11T08:54:37Z")

</div>

Yes, you are correct, [Nexus Repository Pro](https://www.sonatype.com/products/repository-pro) is Nexus Repository with a Pro license that you purchased from Sonatype, and [PostgreSQL database option is one of features](https://help.sonatype.com/repomanager3/repository-manager-pro-features) available only in Pro.
