Dev containers have networking limitations depending on the host OS and Docker setup.
• Docker Desktop on Windows or macOS:
Runs inside a VM
Host networking mode is NOT available
Use the Matterbridge Plugin Dev Container system (https://matterbridge.io/reflector/MatterbridgeDevContainer.html) for development and testing. It provides a similar environment to the native Linux setup with the following features:
✅ It is possible to pair with a Home Assistant instance running via docker compose on the same host
✅ mDNS works normally inside the containers
✅ Remote and local network access (cloud services, internet APIs) work normally
✅ Matterbridge and plugins work normally
✅ Matterbridge frontend works normally
Use the Matterbridge mDNS Reflector with the Matterbridge Plugin Dev Container system (https://matterbridge.io/reflector/Reflector.html) if you want to pair with a controller on the local network with the following features:
✅ It is possible to pair with a Home Assistant instance running via docker compose on the same host
✅ It is possible to pair with a controller running on the local network using mDNS reflector
✅ mDNS, remote and local network access (cloud services, internet APIs) work normally
✅ Matterbridge and plugins work normally
✅ Matterbridge frontend works normally
• Native Linux or WSL 2 with Docker Engine CLI integration:
✅ Host networking IS available (with --network=host)
✅ Full local network access is supported
✅ Matterbridge and plugins work correctly, including pairing
✅ Matterbridge frontend works normally
docker network inspect matterbridge || docker network create matterbridge
docker network ls
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).
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.
Follow the instruction in Matterbridge mDNS reflector