From 752da8f2d9f961b9cedf37c27ad011f8ea1a0ebc Mon Sep 17 00:00:00 2001 From: TasdidurRahman Date: Mon, 19 Aug 2024 16:49:04 +0600 Subject: [PATCH] update README.md for PMA_SSL Signed-off-by: TasdidurRahman --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a034b40..89a4106 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,18 @@ In order to keep your sessions active between container updates you will need to -v /some/local/directory/sessions:/sessions:rw ``` +## Connect over SSL with backend + +Set the variable ``PMA_SSL`` to '1' and enable ssl usage from phpmyadmin to mysql server. The default value is 0. Variable ``PMA_SSLS`` can be used as a comma seperated sequence of 0 and 1 where multiple hosts are mentioned. Values order must follow the ``PMA_HOSTS`` and will be computed accordingly. + +```sh +docker run --name phpmyadmin -d -e PMA_HOSTS=sslhost -e PMA_SSL=1 -p 8080:80 phpmyadmin:latest +``` + +```sh +docker run --name phpmyadmin -d -e PMA_HOSTS='sslhost,nosslhost' -e PMA_SSLS='1,0' -p 8080:80 phpmyadmin:latest +``` + ## Environment variables summary * ``PMA_ARBITRARY`` - when set to 1 connection to the arbitrary server will be allowed @@ -191,6 +203,10 @@ In order to keep your sessions active between container updates you will need to For usage with Docker secrets, appending ``_FILE`` to the ``PMA_PASSWORD`` environment variable is allowed (it overrides ``PMA_PASSWORD`` if it is set): +* ``PMA_SSL`` - define ssl usage for MySQL server + +* ``PMA_SSLS`` - comma separated list of 0 and 1 defining ssl usage for corresponding MySQL servers + ```sh docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin:latest ``` @@ -206,6 +222,8 @@ docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.tx - `PMA_CONTROLHOST` - `PMA_CONTROLUSER` - `PMA_CONTROLPASS` +- `PMA_SSL` +- `PMA_SSLS` ## Run the E2E tests for this docker image