Init-databases scripts attempts to connects to internal MONGO DB even when external mongo DB is specified
Opened this issue · 0 comments
pmadhanbabu commented
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