> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/on-premises/ru/ustanovka/air-gapped-offline-deployments.md).

# Развёртывания в изолированной среде/офлайн

Overleaf Community Edition и Overleaf Pro были разработаны так, чтобы работать офлайн, а это означает, что не всегда может быть возможно обратиться к реестру ghcr.io, чтобы загрузить необходимые `sharelatex` , `overleaf-pro` и образы TeX Live. Это не проблема, поскольку Docker предоставляет инструменты для экспорта и импорта образов, которые помогут вам при офлайн-развертывании/развертывании в изолированной среде.

В общих чертах, вы загрузите необходимые образы на устройство с доступом в интернет, экспортируете их на переносное устройство (или передадите их с помощью SCP/Rsync) и импортируете их на сервер в изолированной сети.

Для этого вам нужно выполнить следующие шаги:

* Загрузите все необходимые образы ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + любые необходимые [образы TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) для использования с [Изолированные компиляции](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles))
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (тег должен быть таким же, как `overleaf-pro`)
  * `docker pull mongo:6` (Пожалуйста, замените на реальную версию)
  * `docker pull redis:6.2` (Пожалуйста, замените на реальную версию)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Пожалуйста, замените на реальную версию)
* Для **каждый** из загруженных образов вам затем нужно будет экспортировать их в файл .tar. Например, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* С помощью предпочитаемого вами способа передайте `.tar` файлы с вашего компьютера с доступом в интернет на офлайн-сервер/сервер в изолированной среде
* Для каждого из файлов .tar используйте `docker load` команду, чтобы загрузить образ из файла .tar. Например, `docker load < overleaf-pro:6.1.2.tar`
* Наконец, выполните `docker images` команду, чтобы просмотреть/подтвердить, что загрузка образов прошла успешно и что они доступны

{% hint style="danger" %}
По умолчанию, когда вы запускаете `bin/up` команду, Toolkit попытается автоматически загрузить каждый из образов TeX Live, заданных через `ALL_TEX_LIVE_DOCKER_IMAGES` в `config/variables.env`. Поскольку ваше развертывание находится в изолированной среде, это не удастся — вы можете отключить это, используя `SIBLING_CONTAINERS_PULL=false` в `config/overleaf.rc`.
{% endhint %}


---

# 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://overleaf-pro.ayaka.space/on-premises/ru/ustanovka/air-gapped-offline-deployments.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.
