[P] Add second agent in docker-compose.yaml
Some checks failed
Component testing / Hub testing (push) Successful in 23s
Component testing / Store testing (push) Successful in 29s
Component testing / Integration smoke testing (push) Failing after 2m37s

This commit is contained in:
2026-03-25 21:44:13 +02:00
parent 2b8d042306
commit 15b8a7086f

View File

@@ -14,8 +14,7 @@ services:
mqtt_network: mqtt_network:
fake_agent: agent1:
container_name: agent
build: build:
context: . context: .
dockerfile: agent/Dockerfile dockerfile: agent/Dockerfile
@@ -26,7 +25,25 @@ services:
MQTT_BROKER_HOST: "mqtt" MQTT_BROKER_HOST: "mqtt"
MQTT_BROKER_PORT: 1883 MQTT_BROKER_PORT: 1883
MQTT_TOPIC: "agent_data_topic" MQTT_TOPIC: "agent_data_topic"
DELAY: 0.1 DELAY: 1.2
USER_ID: 2
networks:
mqtt_network:
agent2:
build:
context: .
dockerfile: agent/Dockerfile
depends_on:
- mqtt
environment:
PYTHONUNBUFFERED: 1
MQTT_BROKER_HOST: "mqtt"
MQTT_BROKER_PORT: 1883
MQTT_TOPIC: "agent_data_topic"
GPS_SOURCE: "data/route2.csv"
DELAY: 1.0
USER_ID: 3
networks: networks:
mqtt_network: mqtt_network: