> 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/ja/hajimeni/pro-infrastructure.md).

# Pro インフラストラクチャ

#### サービス

Overleaf Pro のインフラストラクチャは、4 つの主要サービスで構成されています: `sharelatex`, `git-bridge` （オプション）、 `mongo` および `redis`。その `sharelatex` メインの Server Pro アプリケーションを実行するサービスは、 `mongo` および `redis` データベースとキャッシュ/リアルタイム機能には `git-bridge` を処理するために [Git 連携](/on-premises/ja/she-ding/overleaf-toolkit/git-integration.md) （オプション）です。ホストマシンで公開される唯一のポートは 80 番ポートで、これは `sharelatex` コンテナで使用されます。

Server Pro は、必要に応じて [S3 互換ストレージ](/on-premises/ja/she-ding/overleaf-toolkit/s3.md) を、プロジェクト ファイルや完全なプロジェクト履歴の保存に使用できるほか、メインの [Overleaf ドキュメントサイトarrow-up-right](https://www.overleaf.com/learn)にアクセスをプロキシすることもできます。詳細は、次のガイドを参照してください。 [LaTeX ユーザーヘルプの追加](broken://pages/1eb7c85f56cb20bbc558088faf96011d55fac7bc) ページ。

{% hint style="info" %}
必要であれば、MongoDB と Redis は環境変数を使用して外部サービスを指すように設定し、外部化できます。詳細は [Overleaf の設定](/on-premises/ja/she-ding/overleaf-toolkit.md) を参照してください（Docker Compose を使用している場合）および [Toolkit 設定](/on-premises/ja/she-ding/overleaf-toolkit/toolkit-settings.md) を参照してください（Overleaf Toolkit を使用している場合）。
{% endhint %}

#### コンパイル

サンドボックス化されたコンパイルの場合、 [サンドボックス化されたコンパイル](broken://pages/1dd5f700e39f07902787d70f3e15c1c4535227fb)では、 `sharelatex` コンテナが新しいコンテナの作成を調整してプロジェクトのコンパイルを処理します。これはホストマシン上の Docker ソケット経由で行われます。エディタと、エンドツーエンドのコンパイル/キャッシュ処理について詳しくは [こちら](/on-premises/ja/hajimeni/microservices.md#editor-and-compile-process).

#### ネットワーク

コンテナ間の通信は、専用のブリッジネットワークを介した Docker の内部 DNS 解決によって実現されており、ファイアウォールは有効になっていません。デフォルトでは、上記のサービスはそれぞれ標準ポートを使用しますが、環境変数で設定可能です。 `sharelatex` コンテナは外部の Web アクセス用に 80 番ポートを使用し（Nginx により提供され）、 `mongo` コンテナは 27017 番ポートを使用し、 `redis` は 6379 番ポートを使用します。

当社のマネージドソリューションをご利用のお客様は [Overleaf Toolkitarrow-up-right](https://github.com/overleaf/toolkit)では、必要に応じて [TLS プロキシを有効に](broken://pages/185232ac604b9d1ce1715ceac0ef34d00e3dd4e0) し、環境変数を使用して Nginx による HTTPS 接続の終了処理を行えます。あるいは、既存の TLS プロキシを使用することもできます。

{% hint style="info" %}
リクエストの流れを説明する図を表示できます [こちら](broken://pages/185232ac604b9d1ce1715ceac0ef34d00e3dd4e0).
{% endhint %}

#### 概要

* Docker ネットワークの外では、80 番ポートのみがアクセス可能で、Nginx にバインドされています。 **注:** この `sharelatex` コンテナは多くの [servicesarrow-up-right](https://github.com/overleaf/overleaf/tree/main/services) が HTTP 経由で相互に通信しています。ただし、これらのポートは **外部からは** アクセスできません。Docker ネットワークの外部から。
* Docker ネットワーク内では、Overleaf サービス、MongoDB、Redis、Git Bridge が自由に相互通信できます。
* コンテナ内部では [サンドボックス化されたコンパイル](broken://pages/1dd5f700e39f07902787d70f3e15c1c4535227fb) 、ネットワークは利用できません。

関連トピックについては、次を参照してください:

* [マイクロサービス](/on-premises/ja/hajimeni/microservices.md)
* [Ayakaleaf Toolkit とは何ですか？](/on-premises/ja/hajimeni/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/ja/hajimeni/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.
