Answer the question
In order to leave comments, you need to log in
How to set up additional phpmyadmin password protection at apache level in docker-compose?
I set up LAMP, stuffed it into docker-compose. Everything works, but I was given the task to configure additional phpmyadmin password protection at the apache level in docker-compose. What should happen is that when you go to localhost:phpmyadmin or when you access phpMyAdmin you will be prompted for the user's credentials. How to do it without docker is written here - https://www.digitalocean.com/community/tutorials/h... If someone can help, I will be very happy. If you need more information, please!
Answer the question
In order to leave comments, you need to log in
Here in this article https://www.digitalocean.com/community/tutorials/h... it is written how to set up password protection in a regular apache
Now this knowledge needs to be pulled onto the docker. that is, you need to make a file with passwords. add a few directives to the apache config, add a couple of lines to mount the file with passwords to the container in docker-compose.yml and restart the apache container with new settings. profit!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question