# Nginx 容器外部的速率限制——有什么建议？

**URL:** https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711
**Category:** Self-hosting
**Created:** [2020年三月9日 16:32 UTC](https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711 "2020-03-09T16:32:28Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [2020年三月20日 17:14 UTC](https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711/11 "2020-03-20T17:14:52Z")

</div>

> [@Overgrow](#):
>
> a) 据我所知，推荐在容器外部运行 nginx

不，并非如此。这_是可行的_，但并非标准建议。

以下是相关指南。

> [@Move from standalone container to separate web and data containers](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413):
>
> warning This is an advanced setup. Don’t follow this unless you are experienced with Linux server administration and Docker. You also need to pay close attention to commits to discourse\_docker to make sure you notice if there’s a version bump for postgres or redis. Converting your Current Setup I managed to migrate to two containers. If anyone else needs instructions, this is how it worked for me. The process includes backup, setting up separate web and data containers and restore data. …

如果你的主要顾虑是重建过程中的停机时间，那么这是最佳方案。如果你需要帮助进行设置，#Marketplace 频道中会有人提供帮助。

---

_[View the full topic](https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711)._
