> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/on-premise/install-and-update/installing-on-premise-version/manual-w-docker-compose.md).

# Manual w/ docker compose

{% hint style="danger" %}
MySQL instance is included into the out of the box container and doesn't require any additional setup. If you need to have a standalone database, read [Running a standalone database instance](/on-premise/install-and-update/recommendations/running-a-standalone-database-instance.md)
{% endhint %}

* Install [docker](https://docs.docker.com/engine/install/) 20.10.11 version or higher, and [docker compose](https://docs.docker.com/compose/install/) 1.29.2 version or higher.
* Start docker daemon.
* Get on-premise configuration files:

  <pre class="language-bash"><code class="lang-bash"><strong>mkdir ui-bakery-on-premise &#x26;&#x26; cd ui-bakery-on-premise &#x26;&#x26; curl -k -L -o docker-compose.yml https://raw.githubusercontent.com/uibakery/self-hosted/main/docker-compose.yml &#x26;&#x26; curl -k -L -o docker-compose-external-db.yml https://raw.githubusercontent.com/uibakery/self-hosted/main/docker-compose-external-db.yml &#x26;&#x26; curl -k -L -o setup.sh https://raw.githubusercontent.com/uibakery/self-hosted/main/setup.sh
  </strong></code></pre>
* Get the license key from the UI Bakery team.
* Run `./setup.sh`:
  * Enter the license key;
  * Enter the port (leave empty for local installation, 3030 port will be used);
  * Enter the server URL (leave empty for local installation).
* Run `docker compose up -d` to start the containers;
* Wait until all containers are up and running;
* Open port `3030` or `UI_BAKERY_PORT` (if it was modified in `.env` file or entered in `./setup.sh`) to access UI Bakery instance, then you can create a new account.


---

# 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.uibakery.io/on-premise/install-and-update/installing-on-premise-version/manual-w-docker-compose.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.
