mirror of
https://github.com/daniviga/bite.git
synced 2024-12-23 16:51:25 +01:00
Daniele Viganò
a7cebefbf5
* Add MQTT support on Arduino * Add MQTT simulator * Use a single python simulator * Minor improvements to dockerfiles * Add transport internal field to telemetry * Add PubSubClient
39 lines
813 B
YAML
39 lines
813 B
YAML
version: "3.7"
|
|
|
|
networks:
|
|
localnet:
|
|
|
|
x-op-service-default: &service_default
|
|
restart: always
|
|
init: true
|
|
tty: true
|
|
|
|
services:
|
|
device-http:
|
|
<<: *service_default
|
|
build:
|
|
context: ../simulator
|
|
image: daniviga/freedcs-device-simulator
|
|
environment:
|
|
IOT_HTTP: "http://192.168.10.123:8000"
|
|
# IOT_SERIAL: "abcd1234"
|
|
# IOT_DELAY: 10
|
|
IOT_DEBUG: 1
|
|
networks:
|
|
- localnet
|
|
|
|
device-mqtt:
|
|
<<: *service_default
|
|
build:
|
|
context: ../simulator
|
|
image: daniviga/freedcs-device-simulator
|
|
environment:
|
|
IOT_HTTP: "http://192.168.10.123:8000"
|
|
IOT_MQTT: "192.168.10.123:1883"
|
|
# IOT_SERIAL: "abcd1234"
|
|
# IOT_DELAY: 10
|
|
IOT_DEBUG: 1
|
|
command: ["/opt/freedcs/device_simulator.py", "-t", "mqtt"]
|
|
networks:
|
|
- localnet
|