# HomeBridge en Docker

![](/files/sMVtjjZ0JZCDImOV1FBl)

Vamos desplegar un contenedor docker con Homebridge, podemos hacerlo en nuestro equipo o en una RaspberryPi/NanoPi/Odroid...

Necesitamos tener instalado en la maquina, el servicio de docker.

```
sudo apt update
sudo apt upgrade -y
sudo apt install -y libffi-dev libssl-dev python3 python3-pip
sudo curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
sudo apt install -y docker-compose
```

Ahora simplemente descargamos el repositorio.

```
git clone https://github.com/AzagraMac/homebridge.git
```

Con el repo ya en nuestro equipo, entramos en el directorio y levantamos el contenedor, la primera vez tardara un poco ya que tiene que descargar la imagen.

```
cd homebridge
docker-compose up -d
```

Podemos ver su log

```
docker logs homebridge
```

Cuando termine de descargar la imagen, desde el navegador, entramos en el dashboard.

```
http://IP_MAQUINA:9590
```

![](/files/Nk8oF7NSNt1WdiCJuGZf)

Datos de acceso:

```
user: admin
pass: admin
```


---

# 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://blog.azagra.dev/docker/homebridge-en-docker.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.
