RUN pip3 install /mon
ENV BROKER_URI kafka:9092
-ENV MONGO_URI mongodb://mongo:27017
+ENV MONGO_URI mongo:27017
ENV DATABASE sqlite:///mon_sqlite.db
ENV OS_NOTIFIER_URI localhost:8662
ENV OS_DEFAULT_GRANULARITY 300
def __init__(self):
cfg = Config.instance()
self.common_db = dbmongo.DbMongo()
- self.common_db.db_connect({'uri': cfg.MONGO_URI.split,
+ self.common_db.db_connect({'host': cfg.MONGO_URI.split(':')[0],
+ 'port': int(cfg.MONGO_URI.split(':')[1]),
'name': 'osm',
'commonkey': cfg.OSMMON_DATABASE_COMMONKEY})