# 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: