0 Deploy: Docker
jtagcat edited this page 2021-12-25 12:10:55 +00:00

Docker

Create your matterbridge.toml file locally eg in ./matterbridge/matterbridge.toml.

docker run -ti --mount "type=bind,source=$(pwd)/matterbridge,target=/etc/matterbridge,readonly" 42wim/matterbridge:stable

# Or, for older docker versions:
#
# docker run -ti -v ./matterbridge:/etc/matterbridge:ro 42wim/matterbridge:stable

Docker Compose

Create your matterbridge.toml file locally for example in ./matterbridge/matterbridge.toml and use this yaml as docker-compose.yml.

version: '3.7'
services:
  matterbridge:
    image: 42wim/matterbridge:stable
    restart: unless-stopped
    volumes:
    - ./matterbridge.toml:/etc/matterbridge/matterbridge.toml:ro
#    command: -debug

Afterwards, start the container with docker-compose up -d.