> 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/on-premises-cs/instalace/air-gapped-offline-deployments.md).

# Nasazení s odpojením od sítě/offline nasazení

Overleaf Community Edition i Overleaf Pro byly oba navrženy tak, aby pracovaly offline, což znamená, že nemusí být vždy možné dosáhnout na registr ghcr.io a stáhnout požadované `sharelatex` , `overleaf-pro` a obrazy TeX Live. To není problém, protože Docker poskytuje nástroje pro export a import obrazů, které vám pomohou s offline/air-gapped nasazením.

Ve zkratce stáhnete požadované obrazy na zařízení s připojením k internetu, exportujete je na přenosné zařízení (nebo je přenesete pomocí SCP/Rsync) a importujete je na server v air-gapped prostředí.

K tomu budete muset provést následující kroky:

* Stáhněte všechny požadované obrazy ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + případné potřebné [obrazy TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) pro použití s [Sandboxované kompilace](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) na počítači s připojením k internetu
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (značka musí být stejná jako `overleaf-pro`)
  * `docker pull mongo:6` (Prosím, změňte na skutečnou verzi)
  * `docker pull redis:6.2` (Prosím, změňte na skutečnou verzi)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Prosím, změňte na skutečnou verzi)
* Pro **každý** ze stažených obrazů budete muset poté exportovat do souboru .tar. Například, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Pomocí vámi preferované metody přeneste `.tar` soubory z vašeho zařízení připojeného k internetu na server v offline/air-gapped prostředí
* Pro každý ze souborů .tar použijte `docker load` příkaz k načtení obrazu ze souboru .tar. Například, `docker load < overleaf-pro:6.1.2.tar`
* Nakonec spusťte `docker images` příkaz, abyste zobrazili/potvrdili, že načtení obrazů proběhlo úspěšně a že jsou k dispozici

{% hint style="danger" %}
Ve výchozím nastavení, když spustíte `bin/up` příkaz, se Toolkit pokusí automaticky stáhnout každý z obrazů TeX Live nastavených pomocí `ALL_TEX_LIVE_DOCKER_IMAGES` v `config/variables.env`. Jelikož je vaše nasazení v air-gapped prostředí, selže to -- můžete tomu zabránit použitím `SIBLING_CONTAINERS_PULL=false` v `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/on-premises-cs/instalace/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.
