version: '3.8' networks: traefik-public: external: true smartcity-shared: external: true services: iot-agent: container_name: smart-city-iot-agent image: fiware/iotagent-json:latest restart: unless-stopped environment: - IOTA_CB_HOST=fiware-gis-quickstart-orion-1 - IOTA_CB_PORT=1026 - IOTA_NORTH_PORT=4041 - IOTA_REGISTRY_TYPE=mongodb - IOTA_MONGO_URL=mongodb://smart-city-mongodb:27017/iotagent - IOTA_PROVIDER_URL=http://smart-city-iot-agent:4041 - IOTA_CB_NGSI_VERSION=ld networks: - smartcity-shared - traefik-public labels: - "traefik.enable=true" - "traefik.http.routers.iot-agent.rule=Host(`iot-agent.digitribe.fr`)" - "traefik.http.routers.iot-agent.entrypoints=websecure" - "traefik.http.routers.iot-agent.tls=true" - "traefik.http.services.iot-agent.loadbalancer.server.port=4041" iot-agent-mongodb: container_name: smart-city-mongodb image: mongo:4.4 restart: unless-stopped networks: - smartcity-shared volumes: - mongodb-data:/data/db volumes: mongodb-data: