1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-30 16:45:04 +01:00
bite/docker/edge/docker-compose.yml
Daniele Viganò 09cf23554a
Project renaming (#14)
* Renaming

* Make Django migrations sync to DB availability
2020-06-17 20:08:10 +02:00

39 lines
804 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/beer-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/beer-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/beer/device_simulator.py", "-t", "mqtt"]
networks:
- localnet