> 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/vi/cai-dat/air-gapped-offline-deployments.md).

# Triển khai cách ly mạng/ngoại tuyến

Nói chung, chúng tôi không khuyến nghị triển khai AyakaLeaf Pro trong môi trường ngoại tuyến, vì nhiều tính năng của nó, chẳng hạn như GitHub Sync và tích hợp Zotero, yêu cầu kết nối Internet.

Nhưng nếu bạn muốn làm việc ngoại tuyến, điều đó có nghĩa là không phải lúc nào cũng có thể truy cập registry ghcr.io để kéo các `sharelatex` , `ayakaleaf-pro` và các image TeX Live. Đây không phải là vấn đề vì Docker cung cấp công cụ để xuất và nhập image, giúp bạn triển khai ngoại tuyến/cô lập mạng.

Ở mức độ tổng quan, bạn sẽ tải các image cần thiết xuống trên một thiết bị có kết nối Internet, xuất chúng ra một thiết bị di động (hoặc chuyển chúng bằng SCP/Rsync), và nhập chúng lên máy chủ cô lập mạng.

Để làm điều này, bạn cần hoàn thành các bước sau:

* Kéo tất cả các image cần thiết ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + bất kỳ [image TeX Live cần thiết](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) để sử dụng với [Biên dịch trong môi trường hộp cát](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) trên một máy có kết nối Internet
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (thẻ phải giống với `overleaf-pro`)
  * `docker pull mongo:6` (Vui lòng đổi thành phiên bản thực tế)
  * `docker pull redis:6.2` (Vui lòng đổi thành phiên bản thực tế)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Vui lòng đổi thành phiên bản thực tế)
* Với **mỗi** trong số các image đã kéo, sau đó bạn sẽ cần xuất chúng ra tệp .tar. Ví dụ, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Bằng phương thức bạn ưa thích, hãy chuyển các `.tar` tệp từ máy có kết nối Internet sang máy chủ ngoại tuyến/cô lập mạng
* Với mỗi tệp .tar, hãy dùng `lệnh docker load` để tải image từ tệp .tar. Ví dụ, `docker load < overleaf-pro:6.1.2.tar`
* Cuối cùng, chạy `docker images` lệnh để xem/xác nhận việc tải image đã thành công và chúng có sẵn

{% hint style="danger" %}
Theo mặc định, khi bạn chạy `bin/up` lệnh, Toolkit sẽ cố gắng tự động kéo từng image TeX Live được đặt qua `ALL_TEX_LIVE_DOCKER_IMAGES` trong `config/variables.env`. Do triển khai của bạn là cô lập mạng, việc này sẽ thất bại -- bạn có thể ngăn điều đó bằng cách sử dụng `SIBLING_CONTAINERS_PULL=false` trong `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://ayakaleaf-pro.ayaka.space/on-premises/vi/cai-dat/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.
