> 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/she-ding/overleaf-toolkit/files-and-locations.md).

# ファイルと場所

このページでは、Toolkit が Overleaf のオンプレミス展開を構成するために使用する設定ファイルについて説明します。

### 永続データ

Overleaf Toolkit は、LaTeX プロジェクトのコンパイルに必要なファイルや MongoDB データベースの内容など、永続データを保存する必要があります。これは、ホストマシンから Docker コンテナへいくつかのディレクトリをマウントし、そのディレクトリにデータを書き込むことで実現します。

#### データディレクトリ

次の `sharelatex` container は、LaTeX コンパイルに関するデータを保存するためのディレクトリを必要とします。このディレクトリは、次の設定で `OVERLEAF_DATA_PATH` の変数で `config/overleaf.rc`.

次の `mongo` container は、有効になっている場合、データベースファイルを保存するためのディレクトリを必要とし、同様に次の `redis` container でも同様です。これらのディレクトリは、次でも設定できます `config/overleaf.rc`.

#### ファイル権限

Docker は次のユーザーとして実行されるため `root`、データディレクトリの所有者は最終的に次のユーザーになります `root` ユーザーです。Toolkit を root 以外のユーザーが使用している場合でも同様です。これは問題ではありませんが、コンテナの外部から永続データを変更する予定がある場合は、知っておく価値があります。

### 設定ファイルの場所

ユーザー所有の設定ファイルはすべて次の場所にあります `config/` ディレクトリ。

このディレクトリは **除外されています** git バージョン管理システムから除外されているため、Toolkit のコードを更新しても変更されません。Toolkit は **しないでください** 次のディレクトリ内のデータを変更します `config/` ディレクトリ内のデータを、あなたの許可なく。

{% hint style="info" %}
設定ファイルへの変更は、既存のコンテナには自動的に適用されません。コンテナを停止して再起動した場合でも同様です（ `bin/stop` および `bin/start`）。変更を適用するには、次を実行します `bin/up`。すると内部では `docker compose` が設定変更を新しいコンテナに自動的に適用します。（または、次を実行します `bin/up -d`。Docker ログにアタッチしたくない場合は）。
{% endhint %}

### 次の `overleaf.rc` ファイル

次の `config/overleaf.rc` ファイルには、Toolkit が使用する最も重要なトップレベルの設定が含まれています。変数を設定する文が、次の形式で含まれています: `VARIABLE_NAME=value`

利用可能なすべての設定オプションの内訳については、設定セクションをご覧ください。

### 次の `variables.env` ファイル

次の `config/variables.env` ファイルには、次の対象に読み込まれる環境変数が含まれています `sharelatex` container に読み込まれ、Overleaf のマイクロサービスの設定に使用されます。これには、Web インターフェースのヘッダーに表示されるアプリケーション名、メール送信の設定、Server Pro で使用する SSO などのその他のプレミアム設定が含まれます。

利用可能なすべての環境変数の内訳については、次を参照してください [環境変数](broken://pages/f551e336de5a86c3f4fe6bfa88c2b6919b241a94) 」のセクションをご覧ください。

### 次の `バージョン` ファイル

次の `config/version` ファイルには、Overleaf サーバーの実行中インスタンスを作成するために使用される Docker イメージのバージョン番号が含まれています。

{% hint style="info" %}
これらの設定ファイルへの変更は、既存のコンテナには自動的に適用されません。コンテナを停止して再起動した場合でも同様です（ `bin/stop` および `bin/start`）。変更を適用するには、次を実行します `bin/up`。すると Toolkit が、設定変更を適用した新しいコンテナを自動的に作成します。
{% endhint %}

### 次の `docker-compose.override.yml` ファイル

存在する場合、 `config/docker-compose.override.yml` ファイルは、次の呼び出しに含まれます `docker compose`。これは、Docker Compose 固有の設定を上書きするのに便利です。

次を参照してください [docker-compose のドキュメント](https://docs.docker.com/compose/extends/#adding-and-overriding-configuration) 詳細については。


---

# 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/she-ding/overleaf-toolkit/files-and-locations.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.
