fix: Traefik routing OpenRemote/Ditto + QuantumLeap config (2026-05-08)
This commit is contained in:
91
docker-compose.ditto.yml
Normal file
91
docker-compose.ditto.yml
Normal file
@@ -0,0 +1,91 @@
|
||||
# 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=ditto-mongodb
|
||||
- MONGO_PORT=27017
|
||||
- MONGO_DB=Policies
|
||||
# Supprimer MONGO_URI pour éviter confusion
|
||||
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=ditto-mongodb
|
||||
- MONGO_PORT=27017
|
||||
- MONGO_DB=Things
|
||||
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=false
|
||||
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:
|
||||
Reference in New Issue
Block a user