> For the complete documentation index, see [llms.txt](https://docs.kiloiot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kiloiot.io/kilo-docs-de/kilo-center/kilo-mioty-service-center/getting-started/installation-local-vm-and-automation.md).

# Installation: Lokale VM und Automatisierung

Führen Sie KiloCenter in einer lokalen VM mit automatisierter Bereitstellung aus — reproduzierbares Setup für Tests und Team-Onboarding per Docker.

### Ziel

Erstellen Sie wiederholbare lokale Umgebungen für Tests und das Onboarding des Teams.

### Lokales VM-Muster

Stellen Sie eine Linux-VM bereit, klonen Sie das Repository und folgen Sie den Schritten unter Installation: Docker Compose. Docker Compose ist der empfohlene Ansatz für VM-basierte Setups, da es alle Dienste — einschließlich KC-Web — automatisch verwaltet.

```bash
cd kilocenter-modules
cp .env.example .env
docker compose run --rm certgen
docker compose up --build -d
```

Öffnen Sie `http://localhost/` um zu überprüfen, ob KC-Web läuft.

### Was konsistent bleiben sollte

Halten Sie diese in allen VM-Umgebungen stabil:

* Docker-Compose-Dienste-Set (`postgres`, `redis`, `mosquitto`, `kc-identity`, `kilocenter`, `kc-gateway`, `kc-web`)
* TLS-Zertifikatserzeugung (ausführen `certgen` vor dem ersten Start -- siehe Docker-Compose-Installation)
* Portzuordnungen und Health-Check-Endpunkte

### Warum diesen Modus verwenden

* Validierung in einer sauberen Umgebung von einer frisch eingerichteten Maschine
* Wiederholbares Onboarding für neue Teammitglieder
* Probeläufe für die Vorproduktionsumgebung


---

# 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://docs.kiloiot.io/kilo-docs-de/kilo-center/kilo-mioty-service-center/getting-started/installation-local-vm-and-automation.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.
