add: edge docker-compose.yaml

This commit is contained in:
Toolf
2024-02-15 15:29:13 +02:00
parent 9a179e09e9
commit b65670861d
5 changed files with 76 additions and 48 deletions

View File

@@ -23,14 +23,14 @@ if __name__ == "__main__":
],
)
# Create an instance of the StoreApiAdapter using the configuration
hub_adapter = HubHttpAdapter(
api_base_url=HUB_URL,
)
# hub_adapter = HubMqttAdapter(
# broker=HUB_MQTT_BROKER_HOST,
# port=HUB_MQTT_BROKER_PORT,
# topic=HUB_MQTT_TOPIC,
# hub_adapter = HubHttpAdapter(
# api_base_url=HUB_URL,
# )
hub_adapter = HubMqttAdapter(
broker=HUB_MQTT_BROKER_HOST,
port=HUB_MQTT_BROKER_PORT,
topic=HUB_MQTT_TOPIC,
)
# Create an instance of the AgentMQTTAdapter using the configuration
agent_adapter = AgentMQTTAdapter(
broker_host=MQTT_BROKER_HOST,