Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux docker 连接MongoDB失败 #100

Open
wz930206 opened this issue Dec 22, 2020 · 1 comment
Open

linux docker 连接MongoDB失败 #100

wz930206 opened this issue Dec 22, 2020 · 1 comment

Comments

@wz930206
Copy link

mongoUrl: mongodb://${process.env.BUILD_ENV === 'docker' ? 'database' : 'localhost'}:27017/iBlog_v2,这行代码中database是代表什么吗,需要使用我当前服务器的ip地址吗

@wz930206
Copy link
Author

找到原因了需要把‘database’改成主机ip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant