我按照之前有一个类似问题的帖子进行了尝试 https://coding.imooc.com/learn/questiondetail/217671.html ,nginx可以在80映射到8080端口在服务器打开,我进去到container里通过127.0.0.1:80也可以访问wordpress,mysql我已经改成了5.7版本的,但还是无法在浏览器打开wordpress
网上错误提示:
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at mysql:3306. This could mean your host’s database server is down.
Are you sure you have the correct username and password?
Are you sure you have typed the correct hostname?
Are you sure the database server is running?