phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
665 stars 456 forks source link

How restrict access by IP #371

Open AntoineDavidSupersoniks opened 2 years ago

AntoineDavidSupersoniks commented 2 years ago

Hi,

How to restrict the access by adress IP to phpMyAdmin, I mean i known how restrict an access by IP but what the best practice for this image ?

Cordialy

williamdes commented 2 years ago

Hi @AntoineDavidSupersoniks I think it would be best to use a custom user config: https://github.com/phpmyadmin/docker#adding-custom-configuration

And then something like: https://docs.phpmyadmin.net/en/latest/config.html#cfg_Servers_AllowDeny_rules

Let me know if this fits your needs