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

# Wdrożenia air-gapped/offline

Zarówno Overleaf Community Edition, jak i Overleaf Pro zostały zaprojektowane tak, aby działać offline, co oznacza, że nie zawsze będzie można połączyć się z rejestrem ghcr.io, aby pobrać wymagane `sharelatex` , `overleaf-pro` i obrazy TeX Live. Nie stanowi to problemu, ponieważ Docker udostępnia narzędzia do eksportowania i importowania obrazów, które pomogą Ci we wdrożeniu offline/z odcięciem od sieci.

W skrócie pobierzesz wymagane obrazy na urządzeniu z dostępem do Internetu, wyeksportujesz je na nośnik przenośny (lub przeniesiesz je za pomocą SCP/Rsync) i zaimportujesz na serwerze odciętym od sieci.

Aby to zrobić, musisz wykonać następujące kroki:

* Pobierz wszystkie wymagane obrazy ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + wszelkie wymagane [obrazy TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) do użycia z [Kompilacjami w piaskownicy](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) na maszynie z dostępem do Internetu
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (tag musi być taki sam jak `overleaf-pro`)
  * `docker pull mongo:6` (Proszę zmienić na rzeczywistą wersję)
  * `docker pull redis:6.2` (Proszę zmienić na rzeczywistą wersję)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Proszę zmienić na rzeczywistą wersję)
* Dla **każdego** z pobranych obrazów będziesz musiał następnie wyeksportować je do pliku .tar. Na przykład, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Przy użyciu preferowanej metody przenieś `.tar` pliki z urządzenia z dostępem do Internetu na serwer offline/odcięty od sieci
* Dla każdego z plików .tar użyj `docker load` polecenia, aby załadować obraz z pliku .tar. Na przykład, `docker load < overleaf-pro:6.1.2.tar`
* Na koniec uruchom `docker images` polecenie, aby wyświetlić/potwierdzić, że ładowanie obrazów zakończyło się sukcesem i że są dostępne

{% hint style="danger" %}
Domyślnie, gdy uruchamiasz `bin/up` polecenie, Toolkit spróbuje automatycznie pobrać każdy z obrazów TeX Live ustawiony za pomocą `ALL_TEX_LIVE_DOCKER_IMAGES` w `config/variables.env`. Ponieważ Twoje wdrożenie jest odcięte od sieci, zakończy się to niepowodzeniem — możesz temu zapobiec, używając `SIBLING_CONTAINERS_PULL=false` w `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/pl/instalacja/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.
