Cannot access Mysql Docker Container

This is not the first time you start this database. Did you use data-volume already with other settings? The password in the environment variable is only used the first time when MySQL is initialized on an empty volume. The same for the files you place in /docker-entrypoint-initdb.d.