# 如何使数据库（或其部分）对云数据处理器可访问？

**URL:** <https://meta.discourse.org/t/how-to-make-the-database-or-part-of-it-accessible-to-a-cloud-data-processor/147915>\
**Category:** Self-hosting\
**Created:** [2020年四月14日 06:48 UTC](https://meta.discourse.org/t/how-to-make-the-database-or-part-of-it-accessible-to-a-cloud-data-processor/147915 "2020-04-14T06:48:47Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [2020年四月15日 22:50 UTC](https://meta.discourse.org/t/how-to-make-the-database-or-part-of-it-accessible-to-a-cloud-data-processor/147915/15 "2020-04-15T22:50:33Z")

</div>

我认为 [如何从独立容器迁移到分离的 Web 和数据容器](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413) 这篇帖子中可能包含设置密码的说明。

此外，我认为你可以将 PostgreSQL 端口仅绑定到 127.0.0.1。

```plaintext
expose:
  - "80:80"
  - "443:443"
  - "127.0.0.1:5432:5432"

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-make-the-database-or-part-of-it-accessible-to-a-cloud-data-processor/147915)._
