# Docker Installation

## Using Docker to run a Minical demo server

You need to have [docker and docker-compose](https://docs.docker.com/desktop/) installed on your system.

Once installed, you can simply run:

```
$ cd docker
docker/ $ docker-compose up
```

This would download and build all docker images and will run all services.

You still need to create the `.env` file in the main directory as described in the Minical Installation instructions. You can copy the `.env` file from the `docker` directory into Minical's root.

NOTE that it is best to change the URLs in the `.env` file from `localhost` to your actual IP address. This is necessary to get some functions working, such as the Room Inventory page which makes internal calls to the site using the API interface.

For running the demo server using docker, you can simply run the following command in the main Minical directory:

```
$ cp docker/.env.example ./.env
```

or if you are in the docker directory:

```
docker/ $ cp .env.example ../.env
```

When everything is started, and the `.env` file exists in the Minical root directory, you can simply visit <http://localhost:8080/public/install.php> to continue with the Minical installation and setup.


---

# 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.minical.io/other-resources/docker-installation.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.
