Passwords for the database are passed through environment variables from Docker Compose. When I access the page, sometimes I get an error when executing a query to the database: "An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'pet'@'172.18.0.7' (using password: YES)". That is, 2-5 times I refresh the page everything is fine, then this error occurs, then I refresh it again, it may work again, or the error may occur again. There is no clear pattern. How and where can I see the reason for the user's denial and how to fix it? Additionally, there is a container with Node.js, and periodically the same error occurs there as well.
docker logs
Обсуждают сегодня