The Matterbridge Docker image, which includes a manifest list for the linux/amd64, linux/arm64 and linux/arm/v7 architectures, is published on Docker Hub.
This will create the required directories in your home directory if they don't exist
cd ~
mkdir -p ./Matterbridge
mkdir -p ./.matterbridge
sudo chown -R $USER:$USER ./Matterbridge ./.matterbridge
You may need to adapt the script to your setup.
If you don't want to use sudo with docker commands, run this command:
sudo groupadd docker
sudo usermod -aG docker $USER
The container must have full access to the host network (needed for mdns).
docker run --name matterbridge \
-v ${HOME}/Matterbridge:/root/Matterbridge \
-v ${HOME}/.matterbridge:/root/.matterbridge \
--network host --restart always -d luligu/matterbridge:latest
You may need to adapt the script to your setup.
The docker-compose.yml file is available in the docker directory of the package
services:
matterbridge:
container_name: matterbridge
image: luligu/matterbridge:latest # Matterbridge image with the latest tag
network_mode: host # Ensures the Matter mdns works
restart: always # Ensures the container always restarts automatically
volumes:
- "${HOME}/Matterbridge:/root/Matterbridge" # Mounts the Matterbridge plugin directory
- "${HOME}/.matterbridge:/root/.matterbridge" # Mounts the Matterbridge storage directory
copy it in the home directory or edit the existing one to add the matterbridge service.
Then start docker compose with:
docker compose up -d
docker compose down
docker compose pull
docker container inspect matterbridge
docker start matterbridge
docker stop matterbridge
docker restart matterbridge
docker logs matterbridge
docker logs --tail 1000 -f matterbridge