changed mongodb host

This commit is contained in:
AlbertA-Solicy 2023-09-07 10:13:59 +04:00
parent b077312f43
commit 8a83f89cac
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ fi
MONGODB_INSTANCE_NAME="mdb-instance-0"
if [[ -n "$MONGODB_INSTANCE_NAME" ]]; then
/usr/local/bin/kubectl exec -it "${MONGODB_INSTANCE_NAME}"\-ss\-0 -- bash -c "/usr/bin/mongo --host localhost --port \$(printenv MONGODB_PORT) --ssl --sslCAFile /etc/mongod/ca/ca.pem --sslPEMKeyFile /etc/mongod/ssl/mdb-instance.pem < /configure_mdb_users.js"
/usr/local/bin/kubectl exec -it "${MONGODB_INSTANCE_NAME}"\-ss\-0 -- bash -c "/usr/bin/mongo --host 0.0.0.0/0 --port \$(printenv MONGODB_PORT) --ssl --sslCAFile /etc/mongod/ca/ca.pem --sslPEMKeyFile /etc/mongod/ssl/mdb-instance.pem < /configure_mdb_users.js"
else
echo "Skipping configuration, because relevant files don't exist!!!"
fi

View File

@ -144,4 +144,4 @@ echo "INFO: starting mongod..."
# after https://github.com/docker-library/mongo/issues/172 is resolved. Check
# for other bugs too.
#exec /entrypoint.sh mongod --config ${MONGODB_CONF_FILE_PATH}
exec /usr/bin/mongod --config ${'http://mongodb://localhost:27017'}
exec /usr/bin/mongod --config ${'http://mongodb://0.0.0.0/0:27017'}