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

使用docker-compose 无法解析 db host #15

Open
alonexy opened this issue Aug 6, 2019 · 0 comments
Open

使用docker-compose 无法解析 db host #15

alonexy opened this issue Aug 6, 2019 · 0 comments

Comments

@alonexy
Copy link

alonexy commented Aug 6, 2019

logs

2019/08/06 10:27:25 [error] 48#48: *11 [lua] mysql_db.lua:30: query(): failed to connect: failed to connect: orange-database could not be resolved (3: Host not found): nil nil, client: 192.168.48.1, server: , request: "POST /monitor/enable HTTP/1.1", host: "127.0.0.1:8889", referrer: "http://127.0.0.1:8889/monitor"
2019/08/06 10:27:25 [error] 48#48: *11 [lua] mysql_store.lua:91: update_enable(): MySQLStore:update error:nil, client: 192.168.48.1, server: , request: "POST /monitor/enable HTTP/1.1", host: "127.0.0.1:8889", referrer: "http://127.0.0.1:8889/monitor"
2019/08/06 10:27:27 [info] 49#49: *12 client closed connection while waiting for request, client: 192.168.48.1, server: 0.0.0.0:9999

进入容器能都ping telnet 也是ok的 容器的mysql 也是可以访问的

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