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