> 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/pt/instalacao/air-gapped-offline-deployments.md).

# Implementações isoladas/offline

A Community Edition do Overleaf e o Overleaf Pro foram ambos concebidos para funcionar offline, o que significa que nem sempre pode ser possível الوصول ao registo ghcr.io para obter o necessário `sharelatex` , `overleaf-pro` e as imagens do TeX Live. Isto não é um problema, uma vez que o Docker fornece ferramentas para exportar e importar imagens que o ajudarão com uma implementação offline/isolada da rede.

Em termos gerais, irá transferir as imagens necessárias para um dispositivo com ligação à Internet, exportá-las para um dispositivo portátil (ou transferi-las usando SCP/Rsync) e importá-las para o servidor isolado da rede.

Para fazer isto, terá de concluir os seguintes passos:

* Obtenha todas as imagens necessárias ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + quaisquer [imagens do TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) para utilização com [Compilações em ambiente sandbox](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) numa máquina com ligação à Internet
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (a tag deve ser a mesma que `overleaf-pro`)
  * `docker pull mongo:6` (Por favor, altere para a versão real)
  * `docker pull redis:6.2` (Por favor, altere para a versão real)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Por favor, altere para a versão real)
* Para **cada** das imagens obtidas, terá então de as exportar para um ficheiro .tar. Por exemplo, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Usando o método da sua preferência, transfira os `.tar` ficheiros da sua máquina com ligação à Internet para o servidor offline/isolado da rede
* Para cada um dos ficheiros .tar, use o `docker load` comando para carregar a imagem a partir do ficheiro .tar. Por exemplo, `docker load < overleaf-pro:6.1.2.tar`
* Por fim, execute o `docker images` comando para ver/confirmar que o carregamento das imagens foi bem-sucedido e que estão disponíveis

{% hint style="danger" %}
Por defeito, quando executar o `bin/up` comando, o Toolkit tentará obter automaticamente cada uma das imagens do TeX Live definidas via `ALL_TEX_LIVE_DOCKER_IMAGES` em `config/variables.env`. Como a sua implementação é isolada da rede, isto irá falhar -- pode impedir isso usando `SIBLING_CONTAINERS_PULL=false` em `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/pt/instalacao/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.
