- 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
97 lines
2.7 KiB
YAML
97 lines
2.7 KiB
YAML
# Eclipse Ditto - Smart City Digital Twin (MongoDB fix)
|
|
version: '3.8'
|
|
|
|
services:
|
|
ditto-mongodb:
|
|
image: mongo:6
|
|
container_name: smart-city-ditto-mongodb
|
|
restart: unless-stopped
|
|
networks:
|
|
traefik-public:
|
|
aliases:
|
|
- ditto-mongodb
|
|
volumes:
|
|
- ditto-mongo-data:/data/db
|
|
|
|
ditto-policies:
|
|
image: eclipse/ditto-policies:latest
|
|
container_name: smart-city-ditto-policies
|
|
restart: unless-stopped
|
|
hostname: ditto-policies
|
|
depends_on:
|
|
- ditto-mongodb
|
|
environment:
|
|
- DITTO_JWT_SECRET=my-ditto-secret-12345
|
|
- MONGO_HOST=smart-city-ditto-mongodb
|
|
- MONGO_PORT=27017
|
|
- MONGO_DB=Policies
|
|
- AKKA_REMOTE_ENABLED=false
|
|
networks:
|
|
traefik-public:
|
|
aliases:
|
|
- ditto-cluster
|
|
- ditto-policies
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ditto-policies.rule=Host(`ditto-policies.digitribe.fr`)"
|
|
- "traefik.http.routers.ditto-policies.entrypoints=web"
|
|
- "traefik.http.services.ditto-policies.loadbalancer.server.port=8080"
|
|
|
|
ditto-things:
|
|
image: eclipse/ditto-things:latest
|
|
container_name: smart-city-ditto-things
|
|
restart: unless-stopped
|
|
hostname: ditto-things
|
|
depends_on:
|
|
- ditto-mongodb
|
|
- ditto-policies
|
|
environment:
|
|
- DITTO_JWT_SECRET=my-ditto-secret-12345
|
|
- MONGO_HOST=smart-city-ditto-mongodb
|
|
- MONGO_PORT=27017
|
|
- MONGO_DB=Things
|
|
- AKKA_REMOTE_ENABLED=false
|
|
networks:
|
|
traefik-public:
|
|
aliases:
|
|
- ditto-cluster
|
|
- ditto-things
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ditto-things.rule=Host(`ditto-things.digitribe.fr`)"
|
|
- "traefik.http.routers.ditto-things.entrypoints=web"
|
|
- "traefik.http.services.ditto-things.loadbalancer.server.port=8080"
|
|
|
|
ditto-gateway:
|
|
image: eclipse/ditto-gateway:latest
|
|
container_name: smart-city-ditto-gateway
|
|
restart: unless-stopped
|
|
hostname: ditto-gateway
|
|
depends_on:
|
|
- ditto-things
|
|
- ditto-policies
|
|
environment:
|
|
- DITTO_JWT_SECRET=my-ditto-secret-12345
|
|
- DITTO_GATEWAY_PROXY_ENABLED=true
|
|
- AKKA_REMOTE_ENABLED=false
|
|
- DITTO_GW_STREAMING_ENABLED=true
|
|
- DITTO_GW_MQTT_BROKER=smart-city-mosquitto:1883
|
|
- DITTO_GW_MQTT_TOPIC_FILTER=smartcity/#
|
|
networks:
|
|
traefik-public:
|
|
aliases:
|
|
- ditto-cluster
|
|
- ditto-gateway
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ditto-gateway.rule=Host(`ditto.digitribe.fr`)"
|
|
- "traefik.http.routers.ditto-gateway.entrypoints=web"
|
|
- "traefik.http.services.ditto-gateway.loadbalancer.server.port=8080"
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
|
|
volumes:
|
|
ditto-mongo-data:
|