> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/setup/docker.md).

# В Docker контейнере

Варианты установки MikoPBX в Docker контейнере

{% hint style="danger" %}
«**Host система**» должна быть запущена на базе Linux 5+. Тестировалось на Debian 11 и Ubuntu-21.04, Ubuntu Server 22.04 LTS, macOS Tahoe 26.5
{% endhint %}

MikoPBX можно запустить в Docker, используя два основных способа. Первый способ включает в себя запуск контейнера напрямую через команду Docker с указанием необходимых параметров. Второй способ предусматривает использование Docker Compose, что упрощает управление многоконтейнерными приложениями и позволяет описать всю конфигурацию в yaml-файле, что делает развертывание и обслуживание системы более удобным.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Установка докера и cоздание пользователя и каталогов</strong></td><td>Команды для установки Docker и Docker Compose и настройка перед созданием контейнера</td><td><a href="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2F3ir6J0V7c3OPUfIsQ8kf%2Finstall.png?alt=media&amp;token=3e11ae72-f0d4-4cf0-8f05-ac2afbbc1c80">install.png</a></td><td><a href="/mikopbx/setup/docker/docker-installation.md">Установка докера и cоздание пользователя и каталогов</a></td></tr><tr><td><strong>Запуск MikoPBX в контейнере</strong></td><td>Инструкции по запуску готового контейнера MikoPBX, созданию контейнера из произвольного образа и его запуску</td><td><a href="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FL1HA7yAA1B4mSGLkogbf%2Fdocker.png?alt=media&amp;token=6083233a-2435-4123-a9e5-1d92479e9a97">docker.png</a></td><td><a href="/mikopbx/setup/docker/running-mikopbx-in-container.md">Запуск MikoPBX в контейнере</a></td></tr><tr><td><strong>Запуск MikoPBX с помощью docker compose</strong></td><td>Инструкции по запуску нескольких MikoPBX на одном хосте с помощью docker compose</td><td><a href="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2FwyJDsXXXjFzBqPeDDWj4%2Fcompose.png?alt=media&amp;token=1deb0185-562f-45be-a02a-32cba88365f9">compose.png</a></td><td><a href="/mikopbx/setup/docker/running-mikopbx-using-docker-compose.md">Запуск MikoPBX с помощью docker compose</a></td></tr><tr><td><strong>Внешний файрвол для Docker</strong></td><td>Как защитить веб-интерфейс при `userland-proxy=true`: внешний bouncer или host-режим.</td><td><a href="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2F7UUkA4P4apqEeUfIRpJ6%2FDockerFirewallIcon.png?alt=media&amp;token=4ebdc85e-d7aa-4fc9-b13e-37f5fe2e0c5b">DockerFirewallIcon.png</a></td><td><a href="/mikopbx/security/external-firewall-enforcement.md">Внешний файрвол для Docker</a></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mikopbx.com/mikopbx/setup/docker.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
