> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/zh-cn/ru-men/pro-infrastructure.md).

# Pro 基础设施

#### 服务

Overleaf Pro 基础设施由四个主要服务组成： `sharelatex`, `git-bridge` （可选）， `mongo` 和 `redis`。该 `sharelatex` 服务，它运行主要的 Server Pro 应用程序，依赖于 `mongo` 和 `redis` 这些服务来提供其数据库和缓存/实时功能，以及 `git-bridge` 来处理 [Git 集成](/on-premises/zh-cn/pei-zhi/overleaf-toolkit/git-integration.md) （可选）。主机上公开的唯一端口是 80 端口，由该 `sharelatex` 容器。

Server Pro 还可选支持 [S3 兼容存储](/on-premises/zh-cn/pei-zhi/overleaf-toolkit/s3.md) 用于项目文件和完整项目历史记录，并且还能代理访问主 [Overleaf 文档站点右上箭头](https://www.overleaf.com/learn)。更多信息请参阅我们关于 [添加 LaTeX 用户帮助](broken://pages/5f1aca0da0587985c855ea8f96320b815079ac82) 页面。

{% hint style="info" %}
如有需要，可以使用环境变量将 MongoDB 和 Redis 外部化并指向外部服务。更多信息请参阅 [配置 Overleaf](/on-premises/zh-cn/pei-zhi/overleaf-toolkit.md) 如果你正在使用 Docker Compose，且 [Toolkit 设置](/on-premises/zh-cn/pei-zhi/overleaf-toolkit/toolkit-settings.md) 如果使用 Overleaf Toolkit。
{% endhint %}

#### 编译

对于 [沙盒编译](broken://pages/bfa40b29ead2d38a55ee632ceef263be394836f9)， `sharelatex` 容器将协调创建新的容器来处理项目编译；它通过主机上的 Docker 套接字来实现这一点。你可以在此了解有关编辑器以及端到端编译/缓存流程的更多信息 [此处](/on-premises/zh-cn/ru-men/microservices.md#editor-and-compile-process).

#### 网络

容器之间的通信通过专用桥接网络中的 Docker 内部 DNS 解析来实现，并且未启用防火墙。默认情况下，上述服务使用各自的标准端口，但可通过环境变量进行配置。该 `sharelatex` 容器使用 80 端口提供外部 Web 访问（由 Nginx 提供服务），而 `mongo` 容器使用 27017 端口，而 `redis` 使用 6379 端口。

对于使用我们托管方案的客户 [Overleaf Toolkit右上箭头](https://github.com/overleaf/toolkit)，你可以选择性地 [启用 TLS 代理](broken://pages/b724b34e24e2ac7373a5863f7e8df1603180c9bf) 通过环境变量使用 Nginx 终止 HTTPS 连接。或者，你也可以使用现有的 TLS 代理。

{% hint style="info" %}
你可以查看解释请求流向的示意图 [此处](broken://pages/b724b34e24e2ac7373a5863f7e8df1603180c9bf).
{% endhint %}

#### 总结

* 在 Docker 网络之外，只有 80 端口可访问并绑定到 Nginx。 **注意：** 该 `sharelatex` 容器运行许多 [服务右上箭头](https://github.com/overleaf/overleaf/tree/main/services) 它们通过 HTTP 相互通信。然而，这些端口 **不** 可从 Docker 网络外部访问。
* 在 Docker 网络内部，Overleaf 服务、MongoDB、Redis 和 Git Bridge 可以自由互相通信。
* 在 [沙盒编译](broken://pages/bfa40b29ead2d38a55ee632ceef263be394836f9) 容器中，没有可用的网络。

相关主题请参见：

* [微服务](/on-premises/zh-cn/ru-men/microservices.md)
* [什么是 Ayakaleaf 工具包？](/on-premises/zh-cn/ru-men/what-is-the-overleaf-toolkit.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/zh-cn/ru-men/pro-infrastructure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
