You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
845 B
YAML

version: '2.1'
services:
mosquitto:
image: eclipse-mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- "./mosquitto.conf:/mosquitto/config/mosquitto.conf"
- "./data:/mosquitto/data"
consumer:
build: python-clients
image: mqtt-test
tty: true
stdin_open: true
command:
- 'python'
- 'mqtt-consumer.py'
environment:
MQTT_HOST: '${MQTT_HOST:-pybroker}'
producer:
build: python-clients
image: mqtt-test
tty: true
stdin_open: true
command: ['python', 'mqtt-producer.py']
environment:
MQTT_HOST: '${MQTT_HOST:-pybroker}'
pybroker:
build: python-broker
image: mqtt-pybroker-test
tty: true
stdin_open: true
command:
- 'python'
- 'broker.py'
gobroker:
build: golang
image: mqtt-gobroker-test