Skip to content

Deploy: Docker

jtagcat edited this page Dec 25, 2021 · 8 revisions

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.

Clone this wiki locally