amqtt/docs/docker.md

957 B

Containerization

amqtt library is available on PyPI, GitHub and Read the Docs.

Built from Dockerfile, the default aMQTT broker is publicly available on DockerHub.

Launch

$ docker run -d -p 1883:1883 amqtt/amqtt:latest

Configure and launch

The easiest way to provide a custom aMQTT broker configuration, is to create a yaml file...

$ cp amqtt/scripts/default_broker.yaml broker.yaml

and create a docker compose file...

services:
  amqtt:
    image: amqtt
    container_name: amqtt
    ports:
      - "1883:1883"
    volumes:
      - ./broker.yaml:/app/conf/broker.yaml

and launch with...

$ docker compose -d -f docker-compose.yaml up