Closed zeuscronos closed 3 years ago
Seems like an auth problem, the mysql container is fine but php can't connect to it.
Maybe changing the credentials from $MYSQL_USER
and $MYSQL_PASSWORD
to the username/pass itself?
Removing the port on - WORDPRESS_DB_HOST=db
solved my problem.
I hope this helps you.
@techuila thank you!!!
Removing the port on
- WORDPRESS_DB_HOST=db
solved my problem.I hope this helps you.
I also solved just recreating the container
Issue Description
On this repository: https://github.com/napolev/mysite.local
I have a very simple
docker-compose
project which uses:MySQL + Wordpress + Nginx
.My development environment is:
When I run it on this environment with:
My problem is: I get the following error:
Here you have the full log:
Here you have a Screenshot:
When I open the website on
Chrome
(using:http
, I don't need:https
), I get the following error:When I open the website on
Firefox
(using:http
, I don't need:https
), I get the following error:]
The hosts file is already configured with:
I just want to be able to access to the website.
docker-compose.yml
nginx.conf
Any idea on how to make it work on my local environment (I just need
http
, not needhttps
)?Requirement: Please, use
Windows Subsystem for Linux (WSL) > Ubuntu 18.04
as well in order to reproduce the error on the console above.