Mongodb in docker
wudapeng268 opened this issue · 1 comments
wudapeng268 commented
Hi all,
How to set the MONGOKU_DEFAULT_HOST when our mongodb in docker? The default localhost will not work.
I wonder to know how to set this environment variable when I have not set my user and password.
Thanks for your help.
Best Regards
wudapeng268 commented
I solved this problem, I set this variable in Dockerfile as follow:
ENV MONGOKU_DEFAULT_HOST='mongodb://database:27017;database:27017'
where database is my MongoDB name in docker.