feat: migrate InfluxDB and Grafana from digital-twin/ to smart-city/ stack

- docker-compose.influxdb.yml: InfluxDB v2 on smartcity-shared + traefik-public
- docker-compose.grafana.yml: Grafana 10.2 on smartcity-shared + traefik-public
- grafana/provisioning/: dashboards + datasources updated for smart-city
- pulsar/docker-compose.yml: added smartcity-shared network for simulator access

Services migrated (preserving existing volumes):
  - digital-twin-influxdb → smart-city-influxdb
  - digital-twin-grafana  → smart-city-grafana

Traefik routes updated:
  - influxdb.digitribe.fr → smart-city-influxdb:8086
  - grafana.digitribe.fr  → smart-city-grafana:3000
This commit is contained in:
Eric FELIXINE
2026-05-05 01:53:37 -04:00
parent e8f7df7832
commit e618cbfcb9
9 changed files with 647 additions and 0 deletions

43
pulsar/docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
# Apache Pulsar Standalone - Smart City Digital Twin Martinique
# HTTP Admin UI: https://pulsar.digitribe.fr (via Traefik)
# HTTP API: http://smart-city-pulsar:8080/admin/v2
# Binary: pulsar://smart-city-pulsar:6650
services:
pulsar:
image: apachepulsar/pulsar:3.2.0
container_name: smart-city-pulsar
restart: unless-stopped
user: "10000:0"
ports:
- "6650:6650"
- "8080:8080"
environment:
PULSAR_MEM: "-Xms512m -Xmx512m -XX:MaxDirectMemorySize=512m"
PULSAR_STANDALONE_USE_ZOOKEEPER: "true"
volumes:
- pulsar-data:/pulsar/data
networks:
- traefik-public
- smartcity-shared
command: ["/pulsar/bin/pulsar", "standalone", "-nfw"]
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/admin/v2/clusters || exit 1"]
interval: 30s
timeout: 10s
retries: 10
start_period: 60s
labels:
- "traefik.enable=true"
- "traefik.http.routers.pulsar.rule=Host(`pulsar.digitribe.fr`)"
- "traefik.http.routers.pulsar.entrypoints=websecure"
- "traefik.http.routers.pulsar.tls=true"
- "traefik.http.services.pulsar.loadbalancer.server.port=8080"
networks:
traefik-public:
external: true
smartcity-shared:
external: true
volumes:
pulsar-data: