Most of DATAGERRY’s configuration is stored in MongoDB. There are a view parameters which cannot be stored at this place (e.g. database connection to MongoDB itself). For this parameters, we provide an INI style configuration file, called cmdb.conf. Please see the following example:
[Database] host = 127.0.0.1 port = 27017 database_name = cmdb ;username = username ;password = password [WebServer] host = 0.0.0.0 port = 4000 [Token] expire = 1440 ;[Cache] ;name = redis ;host = 127.0.0.1 ;port = 6379 ;password = [MessageQueueing] host = 127.0.0.1 port = 5672 username = guest password = guest exchange = datagerry.eventbus connection_attempts = 2 retry_delay = 6 use_tls = False
It is possible to overwrite settings in the configuration file with OS environment variables. Please see the following example:
This feature is especially useful, if you want to run DATAGERRY in Docker.