> 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-fr/kilo-center/kilo-mioty-service-center/getting-started/installation-local-vm-and-automation.md).

# Installation : VM locale et automatisation

Exécutez KiloCenter dans une VM locale avec provisionnement automatisé — configuration reproductible pour les tests et l’accueil des équipes via Docker.

### Objectif

Créez des environnements locaux reproductibles pour les tests et l’intégration des nouveaux membres de l’équipe.

### Modèle de VM locale

Provisionnez une VM Linux, clonez le dépôt et suivez les étapes de Installation : Docker Compose. Docker Compose est l’approche recommandée pour les configurations basées sur une VM, car il gère automatiquement tous les services — y compris KC-Web —.

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

Ouvrez `http://localhost/` pour vérifier que KC-Web est en cours d’exécution.

### Ce qu’il faut garder cohérent

Conservez ces éléments stables dans tous les environnements VM :

* Ensemble de services Docker Compose (`postgres`, `redis`, `mosquitto`, `kc-identity`, `kilocenter`, `kc-gateway`, `kc-web`)
* Génération du certificat TLS (exécutez `certgen` avant le premier démarrage -- voir l’installation de Docker Compose)
* Mappages de ports et points de terminaison de vérification de l’état

### Pourquoi utiliser ce mode

* Validation en environnement isolé depuis une machine vierge
* Intégration reproductible des nouveaux membres de l’équipe
* Répétitions de l’environnement de préproduction


---

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