Matterbridge Logo    Matterbridge Dev Container

Using the Dev Container

Dev containers networking limitations

Dev containers have networking limitations depending on the host OS and Docker setup.

• Docker Desktop on Windows or macOS:

• Native Linux or WSL 2 with Docker Engine CLI integration:

Create the shared matterbridge bridge docker network

docker network inspect matterbridge || docker network create matterbridge
docker network ls

Run Home Assistant and Matter Server in Docker Compose with Docker Desktop

Will join the matterbridge bridge docker network.

The matterbridge-dev-container-docker-compose.yml is available here.

docker network inspect matterbridge || docker network create matterbridge
docker compose -p matterbridge-dev-container -f matterbridge-dev-container-docker-compose.yml down
docker compose -p matterbridge-dev-container -f matterbridge-dev-container-docker-compose.yml pull
docker compose -p matterbridge-dev-container -f matterbridge-dev-container-docker-compose.yml up -d --force-recreate

The Matterbridge UI is available on port 8283.

The Home Assistant UI is available on port 8123.

The Matter Server UI is available on port 5580.

The first time you run the docker compose, you will be asked for the Matter Server address, use matterserver as address instead of localhost (ws://matterserver:5580/ws).

Open Matterbridge UI in the Matterbridge Plugin Dev Container

Features:

Run from the Dev Container terminal:

matterbridge

The first time you run the matterbridge plugin dev container, matterbridge will be build locally from the GitHub dev branch. Rebuild the dev container to update Matterbridge.

You can now pair matterbridge (the plugin is already added to matterbridge) to the Matter Server instance running in container.

Run the matterbridge reflector client on the shared matterbridge bridge docker network (only required if you want mDNS in the dev container to pair with a lan controller or to discover devices on the lan)

Follow the instruction in Matterbridge mDNS reflector