set some enviroment variables, then the following commands would work out of the box.
export KOAD_IO_ENTITY=marsha export DB_USER_NAME=$KOAD_IO_ENTITY export DB_USER_PASS=$(cat /dev/random | tr -dc '[:alnum:]' | head -c 40 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev) export DB_HOST=10.10.10.11 # The host inside my overlay export DB_PORT=27017 export DB_NAME=$KOAD_IO_ENTITY export DB_ROOT_INIT_USERNAME=koad export DB_ROOT_INIT_PASSWORD=$(cat /dev/random | tr -dc '[:alnum:]' | head -c 40 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev)
if you use the previous commands, you should also print out the passwords rthat were generated.
maybe you want to use this as a state DB for a koad:io entity? .. paste the the passwords in the entity's
I'll use my personal overlay for DB_HOST, this way nobody can connect to it unless they are inside my metaverse. maybe auth is optional here, since maybe I am the only one with access to the overlay. hmm.
your DB using docker,
use this to find out your string MONGO_URL=mongodb://DB_USER_NAME:DB_USER_PASS@DB_HOST:DB_PORT/DB_NAME
connect via another container
Maybe my shit is too old,.
MongoDB 5.0 CPU Intel G4650 compatibility
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that! see https://jira.mongodb.org/browse/SERVER-54407 see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2 see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814