feat(simulator): real-time (1s), fix ENABLE_PULSAR, add Pulsar/Redpanda publish, fix InfluxDB URL
- Change INTERVAL to 1s for real-time sensor data - Fix ENABLE_PULSAR comparison (accept 'true'/'false' strings) - Add publish_pulsar() and publish_redpanda() functions - Fix InfluxDB URL (smart-city-influxdb instead of digital-twin-influxdb) - Add docker-compose.yml with simulator service - Add redpanda config and start script - Add session_resume_2026-05-05.md
This commit is contained in:
57
docker-compose.yml
Normal file
57
docker-compose.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
# Smart City Digital Twin Martinique — Main Docker Compose
|
||||
# Usage: docker compose -p smart-city up -d
|
||||
# This file defines the simulator and includes other services
|
||||
|
||||
version: '3.8'
|
||||
|
||||
networks:
|
||||
smartcity-shared:
|
||||
external: true
|
||||
traefik-public:
|
||||
external: true
|
||||
|
||||
services:
|
||||
# Smart City Simulator
|
||||
simulator:
|
||||
build: .
|
||||
container_name: smart-city-simulator
|
||||
networks:
|
||||
- smartcity-shared
|
||||
- traefik-public
|
||||
environment:
|
||||
# MQTT Brokers
|
||||
- ENABLE_EMQX=true
|
||||
- ENABLE_MOSQUITTO=true
|
||||
- ENABLE_BUNKER=true
|
||||
# Context Brokers
|
||||
- ENABLE_ORION=true
|
||||
- ENABLE_STELLIO=true
|
||||
- ENABLE_FROST=true
|
||||
# Databases
|
||||
- ENABLE_INFLUX=true
|
||||
- INFLUX_URL=http://smart-city-influxdb:8086
|
||||
# Pulsar
|
||||
- ENABLE_PULSAR=true
|
||||
- PULSAR_HOST=smart-city-pulsar
|
||||
- PULSAR_PORT=8080
|
||||
# Redpanda (Kafka)
|
||||
- ENABLE_REDPANDA=false # Disabled - troubleshooting
|
||||
- REDPANDA_BROKERS=smart-city-redpanda:9092
|
||||
# Simulation settings
|
||||
- INTERVAL=30
|
||||
- LOG_LEVEL=INFO
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
|
||||
# InfluxDB (defined in docker-compose.influxdb.yml)
|
||||
# Run with: docker compose -f docker-compose.yml -f docker-compose.influxdb.yml up -d
|
||||
|
||||
# Grafana (defined in docker-compose.grafana.yml)
|
||||
# Run with: docker compose -f docker-compose.yml -f docker-compose.grafana.yml up -d
|
||||
|
||||
# Pulsar (defined in pulsar/docker-compose.yml)
|
||||
# Run with: docker compose -f docker-compose.yml -f pulsar/docker-compose.yml up -d
|
||||
|
||||
# Redpanda (defined in redpanda/docker-compose.yml)
|
||||
# Run with: docker compose -f docker-compose.yml -f redpanda/docker-compose.yml up -d
|
||||
Reference in New Issue
Block a user