mbwb-data-couchdb
The docker-compose.yml uses the args section on the 'backend' service to set values from the .env file. The Dockerfile-backend file takes those arguments and calls npm config set. When npm run create:db is called it uses those config values to intialize the database.
you env file should look something like:
COUCHDB_HOST=localhost
COUCHDB_PORT=5984
COUCHDB_DB=mbwb_local
COUCHDB_USER=admin
COUCHDB_PASSWORD=mbwb123
COUCHDB_ENV=local
COUCHDB_MAX_SOCKETS=50
COUCHDB_EVENTS_DB=mbwb_events_local
COUCHDB_TRADE_EVENTS_DB=mbwb_trade_events_local
COUCHDB_COMPANY_EVENTS_DB=mbwb_company_events_local
COUCHDB_USER_EVENTS_DB=mbwb_user_events_local