- 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
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
# 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:
|