Files
smart-city-digital-twin-mar…/docker-compose.influxdb.yml
Eric FELIXINE 918c03dffa fix: Simulateur MQTT 3/4 + OpenRemote master + Mapsettings
- MQTT OK: 3/4 (EMQX, Mosquitto, BunkerM)
- OpenRemote: utilise realm master (token fonctionnel)
- Realm smartcity recréé dans Keycloak
- Assets IOTSensor créés dans master (30) et smartcity (30)
- Mapsettings: layers iot-sensors + labels pour master et smartcity
- INTERVAL=5s, réseau openremote_default ajouté
- Dockerfile: --no-cache rebuild
2026-05-11 14:19:53 -04:00

38 lines
938 B
YAML

# InfluxDB v2 - Time-series database for Smart City IoT analytics
# Usage: docker compose -f docker-compose.influxdb.yml up -d
networks:
smartcity-shared:
external: true
traefik-public:
external: true
volumes:
influxdb_data:
external: false
services:
influxdb:
image: influxdb:2.7-alpine
container_name: smart-city-influxdb
networks:
- smartcity-shared
- traefik-public
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=Digitribe972
- DOCKER_INFLUXDB_INIT_ORG=digitribe
- DOCKER_INFLUXDB_INIT_BUCKET=smartcity
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-token
volumes:
- influxdb_data:/var/lib/influxdb2
restart: unless-stopped
healthcheck:
test: ["CMD", "influx", "ping"]
interval: 30s
timeout: 10s
retries: 5