JaneliaSciComp / jacs-cm

JACS Configuration Management
Other
8 stars 3 forks source link

Init-databases scripts attempts to connects to internal MONGO DB even when external mongo DB is specified #12

Open pmadhanbabu opened 4 years ago

pmadhanbabu commented 4 years ago

Not able to initialize the mongo database when the external mongoDB server is specified in the .env.config The script attempts to connect to internal mongo db (getaddrinfo("mongo1")) always since the jacs-init container is hardcoded to use the internal mongo DB always.

Ex: Mongo db server is specified below in .env file MONGODB_SERVER=externalmongo01.aaa.org:27017

while initializing the database (manage.sh init-database), the script attempts to initialize the database for the internal MongoDB (mongo1) instead of externalmongo01