# 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: 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:

```
GET https://docs.uibakery.io/on-premise/install-and-update/installing-on-premise-version/manual-w-docker-compose.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
