# Is it possible to login into the postgres database inside the docker image?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-login-into-the-postgres-database-inside-the-docker-image/35167>\
**Category:** Self-hosting\
**Created:** [November 2, 2015, 12:48am UTC](https://meta.discourse.org/t/is-it-possible-to-login-into-the-postgres-database-inside-the-docker-image/35167 "2015-11-02T00:48:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [November 2, 2015, 8:04am UTC](https://meta.discourse.org/t/is-it-possible-to-login-into-the-postgres-database-inside-the-docker-image/35167/4 "2015-11-02T08:04:17Z")

</div>

If you’re following the standard Docker install and did not change the postgres template, try

```plaintext
./launcher enter app
su postgres -c "psql discourse"

```

> [@badr](#):
>
> Where can I find the username and password for the PostGres DB Discourse is using.

> <https://github.com/discourse/discourse_docker/blob/8bd5ef16bc86262675ffb54c3d79c2985b5e2d7d/templates/postgres.template.yml#L201-L208>

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-login-into-the-postgres-database-inside-the-docker-image/35167)._
