Meituan-Dianping / Logan

Logan is a lightweight case logging system based on mobile platform.
https://tech.meituan.com/logan_open_source.html
MIT License
5.73k stars 876 forks source link

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 1 year ago

Richard-Cao commented 1 year ago

这个我也不清楚哎

yiGmMk commented 1 year ago

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

MartinDong commented 4 months ago

遇到了,怎么解决呀?

yiGmMk commented 4 months ago

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

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