Fix: InfluxDB token + bucket iot_data créé

- Token InfluxDB corrigé dans simulator.py (my-super-token)
- Bucket iot_data créé dans InfluxDB
- CrateDB-Stellio ports sécurisés (suppression exposition publique)
- Healthchecks MongoDB/Mosquitto corrigés
- Nettoyage container digital-twin-grafana
This commit is contained in:
Eric FELIXINE
2026-05-07 10:41:16 -04:00
parent 007e7eb2ff
commit 66a22a2421
3 changed files with 133568 additions and 1 deletions

133532
simulator.log Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -92,7 +92,7 @@ ENABLE_INFLUX = os.environ.get("ENABLE_INFLUX", "1").lower() in ("1", "true", "
INFLUX_URL = os.environ.get("INFLUX_URL", "http://smart-city-influxdb:8086") # InfluxDB v2 sur smartcity-shared INFLUX_URL = os.environ.get("INFLUX_URL", "http://smart-city-influxdb:8086") # InfluxDB v2 sur smartcity-shared
INFLUX_ORG = os.environ.get("INFLUX_ORG", "digitribe") INFLUX_ORG = os.environ.get("INFLUX_ORG", "digitribe")
INFLUX_BUCKET = os.environ.get("INFLUX_BUCKET", "iot_data") INFLUX_BUCKET = os.environ.get("INFLUX_BUCKET", "iot_data")
INFLUX_TOKEN = os.environ.get("INFLUX_TOKEN", "my-super-secret-admin-token") INFLUX_TOKEN = os.environ.get("INFLUX_TOKEN", "my-super-token")
# Prometheus metrics HTTP server # Prometheus metrics HTTP server
METRICS_PORT = int(os.environ.get("METRICS_PORT", "8001")) METRICS_PORT = int(os.environ.get("METRICS_PORT", "8001"))

View File

@@ -0,0 +1,35 @@
# ThingsBoard Configuration
# Basic settings for ThingsBoard CE
database:
type: "${DATABASE_TYPE:sql}"
entities:
type: "${DATABASE_ENTITIES_TYPE:sql}"
spring:
datasource:
url: "${SPRING_DATASOURCE_URL:jdbc:postgresql://thingsboard-postgres:5432/thingsboard}"
username: "${SPRING_DATASOURCE_USERNAME:postgres}"
password: "${SPRING_DATASOURCE_PASSWORD:Digitribe972}"
hikari:
maximumPoolSize: "${DATABASE_MAX_CONNECTIONS:100}"
# MQTT settings
mqtt:
bind_address: "${MQTT_BIND_ADDRESS:0.0.0.0}"
bind_port: "${MQTT_BIND_PORT:1883}"
enabled: "${MQTT_ENABLED:true}"
# HTTP settings
http:
bind_address: "${HTTP_BIND_ADDRESS:0.0.0.0}"
bind_port: "${HTTP_BIND_PORT:8080}"
enabled: "${HTTP_ENABLED:true}"
# Transport configuration
transport:
tenant:
mqtt:
enabled: "${MQTT_ENABLED:true}"
http:
enabled: "${HTTP_ENABLED:true}"