# Eclipse Ditto - Smart City Digital Twin - Martinique # Using official Eclipse Ditto images with Akka cluster 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:3.8.0 container_name: smart-city-ditto-policies restart: unless-stopped hostname: ditto-policies depends_on: - ditto-mongodb environment: - TZ=Europe/Berlin - BIND_HOSTNAME=0.0.0.0 - DITTO_JWT_SECRET=NTOT-Vh8WRKWE52eV8zRiLs3a-gd8YUGSrvm5x2InZc - MONGODB_URI=mongodb://smart-city-ditto-mongodb:27017/Policies - AKKA_REMOTE_ENABLED=true - AKKA_REMOTE_CANONICAL_HOSTNAME=ditto-policies - AKKA_REMOTE_CANONICAL_PORT=2551 - JAVA_TOOL_OPTIONS=-Dditto.mongodb.uri=mongodb://smart-city-ditto-mongodb:27017/Policies -Dditto.mongodb.db-name=Policies networks: traefik-public: aliases: - ditto-cluster - ditto-policies ditto-things: image: eclipse/ditto-things:3.8.0 container_name: smart-city-ditto-things restart: unless-stopped hostname: ditto-things depends_on: - ditto-mongodb - ditto-policies environment: - TZ=Europe/Berlin - BIND_HOSTNAME=0.0.0.0 - DITTO_JWT_SECRET=NTOT-Vh8WRKWE52eV8zRiLs3a-gd8YUGSrvm5x2InZc - MONGODB_URI=mongodb://smart-city-ditto-mongodb:27017/Things - AKKA_REMOTE_ENABLED=true - AKKA_REMOTE_CANONICAL_HOSTNAME=ditto-things - AKKA_REMOTE_CANONICAL_PORT=2551 - JAVA_TOOL_OPTIONS=-Dditto.mongodb.uri=mongodb://smart-city-ditto-mongodb:27017/Things -Dditto.mongodb.db-name=Things -Dditto.things.authentication.devops.password=OvP9WVB09aFDnYPyK52UIg networks: traefik-public: aliases: - ditto-cluster - ditto-things 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: - TZ=Europe/Berlin - BIND_HOSTNAME=0.0.0.0 - DITTO_JWT_SECRET=NTOT-Vh8WRKWE52eV8zRiLs3a-gd8YUGSrvm5x2InZc - DITTO_GATEWAY_PROXY_ENABLED=true - AKKA_REMOTE_ENABLED=true - AKKA_REMOTE_CANONICAL_HOSTNAME=ditto-gateway - AKKA_REMOTE_CANONICAL_PORT=2551 - DITTO_GW_STREAMING_ENABLED=true - DITTO_GW_MQTT_BROKER=192.168.192.26:1883 - DITTO_GW_MQTT_TOPIC_FILTER=smartcity/# - DEVOPS_PASSWORD=OvP9WVB09aFDnYPyK52UIg - JAVA_TOOL_OPTIONS=-Xms512m -Xmx1024m -Dditto.gateway.http.port=8080 -Dditto.gateway.http.api.enabled=true - DITTO_APIDOC_ENABLED=true - DITTO_GATEWAY_HTTP_API_ENABLED=true networks: traefik-public: aliases: - ditto-cluster - ditto-gateway labels: - "traefik.enable=true" - "traefik.http.routers.ditto.rule=Host(`ditto.digitribe.fr`)" - "traefik.http.routers.ditto.entrypoints=websecure" - "traefik.http.routers.ditto.tls.certresolver=letsencrypt" - "traefik.http.services.ditto.loadbalancer.server.port=8080" ditto-ui: image: eclipse/ditto-ui:latest container_name: smart-city-ditto-ui restart: unless-stopped depends_on: - ditto-gateway networks: traefik-public: aliases: - ditto-ui networks: traefik-public: external: true smartcity-shared: external: true volumes: ditto-mongo-data: name: smart-city-digital-twin-martinique_ditto-mongo-data