# Accessing Database

**URL:** <https://meta.discourse.org/t/accessing-database/154125>\
**Category:** Self-hosting\
**Created:** [June 7, 2020, 10:40pm UTC](https://meta.discourse.org/t/accessing-database/154125 "2020-06-07T22:40:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cmoi](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@cmoi](https://meta.discourse.org/u/cmoi)\
**Post date:** [June 7, 2020, 11:03pm UTC](https://meta.discourse.org/t/accessing-database/154125/3 "2020-06-07T23:03:36Z")

</div>

ok good idea.  
Actually I figured it out. It runs on port 5432 also in the container.  
it should read:  
expose:

- “5432:5432” # PostgreSQL

thanks

---

_[View the full topic](https://meta.discourse.org/t/accessing-database/154125)._
