1
0
mirror of https://github.com/daniviga/bite.git synced 2024-12-24 01:01:25 +01:00
bite/docker/edge/docker-compose.yml

39 lines
804 B
YAML
Raw Normal View History

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/bite-device-simulator
environment:
IOT_HTTP: "http://192.168.10.123:8000"
# IOT_SERIAL: "abcd1234"
# IOT_DELAY: 10
2020-06-04 18:06:37 +02:00
IOT_DEBUG: 1
networks:
- localnet
device-mqtt:
<<: *service_default
build:
context: ../simulator
image: daniviga/bite-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/bite/device_simulator.py", "-t", "mqtt"]
networks:
- localnet