# 使用 Nginx Proxy Manager 管理多个 Discourse 站点

**URL:** <https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [2021 年8 月 17 日 08:21 UTC](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344 "2021-08-17T08:21:04Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

作者： ![f1r4s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/f1r4s/32/245347_2.png) [@f1r4s](https://meta.discourse.org/u/f1r4s)\
发布日期： [2022 年1 月 20 日 21:38 UTC](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344/23 "2022-01-20T21:38:31Z")

</div>

安装听起来不错，直到我在 npm 与 discourse 主机通信时卡住；您提到在 npm compose 文件中的 mySQL 主机中放入数据容器的 IP 地址

```plaintext
 environment:
      DB_MYSQL_HOST: "db"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "npm"
      DB_MYSQL_PASSWORD: "npm"
      DB_MYSQL_NAME: "npm"

```

但是当我将 (DB\_MYSQL\_HOST) 更改为数据容器时，它显示连接被拒绝。

```plaintext
connect ECONNREFUSED 172.17.0.2:3306 <-- npm 在 discours 网络（network_mode: bridge）中时出错。
getaddrinfo ENOTFOUND db <-- 当 npm compose 文件中的 mySQL 定义为“db”时出错。

```

有什么建议可以让我完成第三步吗？

---

_[View the full topic](https://meta.discourse.org/t/use-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344)._
