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:
42
redpanda/docker-compose.yml
Normal file
42
redpanda/docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
# Redpanda (Kafka-compatible) — Single Node for Smart City Digital Twin Martinique
|
||||
# Usage: docker compose -p smart-city -f redpanda/docker-compose.yml up -d
|
||||
# Ports: 19092=Kafka (host), 9644=Admin API
|
||||
services:
|
||||
redpanda:
|
||||
image: redpandadata/redpanda:v24.3.14
|
||||
container_name: smart-city-redpanda
|
||||
entrypoint: ["/bin/bash", "/start.sh"]
|
||||
volumes:
|
||||
- redpanda-data:/var/lib/redpanda/data
|
||||
- ./start.sh:/start.sh:ro
|
||||
ports:
|
||||
- "19092:9092"
|
||||
- "19644:9644"
|
||||
networks:
|
||||
- traefik-public
|
||||
- smartcity-shared
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2G
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -sf http://localhost:9644/v1/status/ready 2>/dev/null || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 60s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.redpanda.rule=Host(`redpanda.digitribe.fr`)"
|
||||
- "traefik.http.routers.redpanda.entrypoints=websecure"
|
||||
- "traefik.http.routers.redpanda.tls=true"
|
||||
- "traefik.http.services.redpanda.loadbalancer.server.port=9644"
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
smartcity-shared:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
redpanda-data:
|
||||
Reference in New Issue
Block a user