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 4- | rev) export DB_HOST=10.10.10.11 # The host inside my overlay export DB_PORT=27017 # this should be changed to something a little more discrete export DB_NAME=$KOAD_IO_ENTITY export INIT_ROOT_USERNAME=koad export INIT_ROOT_PASSWORD=$(cat /dev/random | tr -dc '[:alnum:]' | head -c 40 2>/dev/null | base64 -w 0 | rev | cut -b 4- | rev)
if you use the previous commands, you should also print out the passwords rthat were generated.
may as well print it all out, so you can copy it somewhere safe.
maybe you want to use this as a state DB for a koad:io entity? .. paste output of the previous command 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,
create the DB and shit, use this page as guidance
use this to find out your string MONGO_URL=mongodb://DB_USER_NAME:DB_USER_PASS@DB_HOST:DB_PORT/DB_NAME
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