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部署,server8008端口我看起不来,找了docker-compose.yaml的配置也没看到有8008的配置,还有,db_migrate_1这个也起不来,看日志是连不上数据库docker logs logan_db-migrate_1 error: dial tcp 172.21.0.2:3306: connect: connection refused这块作者有遇到过吗 #482

Open
yezi003 opened this issue Jun 20, 2023 · 4 comments

Comments

@yezi003
Copy link

yezi003 commented Jun 20, 2023

No description provided.

@Richard-Cao
Copy link
Member

这个我也不清楚哎

@yiGmMk
Copy link
Contributor

yiGmMk commented Aug 2, 2023

server 8080 端口,在server目录下的 Dockerfile里
ENV SERVER_PORT 8080 EXPOSE ${SERVER_PORT}
server起不来的话可以看下日志,是不是mysql没起成功, server和 db_migrate_1(迁移工具,初始化表)都依赖数据库

@MartinDong
Copy link

遇到了,怎么解决呀?

@yiGmMk
Copy link
Contributor

yiGmMk commented Jul 18, 2024

docker compose里有这些服务, frontend phpmyadmin db-migrate db backend ,有依赖关系,db启动后,会使用 db-migrate进行迁移表,phpmyadmin是查看mysql的工具也依赖db, frontend前端,backend后端

用vscode的docker插件,可以逐个查看每个container的日志,首先确保db正常启动

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

4 participants