- Redpanda : correction start.sh (v24.3.14) - FROST : ENABLE_FROST=true dans simulator (test direct) - Pulsar : distribution.py mis à jour (mais ConnectError) - Prometheus : config ajoutée (prometheus.yml) - Grafana : datasources prêtes
58 lines
1.5 KiB
YAML
58 lines
1.5 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, 18083=Schema Registry
|
|
services:
|
|
redpanda:
|
|
image: redpandadata/redpanda:v24.3.14
|
|
container_name: smart-city-redpanda
|
|
command:
|
|
- redpanda
|
|
- start
|
|
- --overprovisioned
|
|
- --smp
|
|
- "1"
|
|
- --memory
|
|
- 1G
|
|
- --reserve-memory
|
|
- 0M
|
|
- --node-id
|
|
- "0"
|
|
- --check=false
|
|
- --kafka-addr
|
|
- internal://0.0.0.0:9092
|
|
- --advertise-kafka-addr
|
|
- internal://smart-city-redpanda:9092
|
|
- --rpc-addr
|
|
- internal://0.0.0.0:33145
|
|
- --advertise-rpc-addr
|
|
- smart-city-redpanda:33145
|
|
ports:
|
|
- "19092:9092"
|
|
- "19644:9644"
|
|
volumes:
|
|
- redpanda-data:/var/lib/redpanda/data
|
|
networks:
|
|
- traefik-public
|
|
- smartcity-shared
|
|
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:
|