I'm trying to use my local mongodb inside my docker container.
To allow access, I have edited my mongo.conf as follows:
but when running mongo db restart, I get this in the mongodb.log:
systemLog:
destination: file
path: /opt/homebrew/var/log/mongodb/mongo.log
logAppend: true
storage:
dbPath: /opt/homebrew/var/mongodb
net:
bindIp: 127.0.0.1,172.17.0.1
ipv6: false
Can't assign requested address
{"t":{"$date":"2022-09-21T15:35:17.125+03:00"},"s":"E", "c":"CONTROL", "id":20568, "ctx":"initandlisten","msg":"Error setting up listener","attr":{"error":{"code":9001,"codeName":"SocketException","errmsg":"Can't assign requested address"}}}
and running brew services restart mongodb-community && brew services list
mongodb-community error 12288 ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist