Skip to content

Commit 752da8f

Browse files
update README.md for PMA_SSL
Signed-off-by: TasdidurRahman <[email protected]>
1 parent 88b594a commit 752da8f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ In order to keep your sessions active between container updates you will need to
158158
-v /some/local/directory/sessions:/sessions:rw
159159
```
160160

161+
## Connect over SSL with backend
162+
163+
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.
164+
165+
```sh
166+
docker run --name phpmyadmin -d -e PMA_HOSTS=sslhost -e PMA_SSL=1 -p 8080:80 phpmyadmin:latest
167+
```
168+
169+
```sh
170+
docker run --name phpmyadmin -d -e PMA_HOSTS='sslhost,nosslhost' -e PMA_SSLS='1,0' -p 8080:80 phpmyadmin:latest
171+
```
172+
161173
## Environment variables summary
162174

163175
* ``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
191203

192204
For usage with Docker secrets, appending ``_FILE`` to the ``PMA_PASSWORD`` environment variable is allowed (it overrides ``PMA_PASSWORD`` if it is set):
193205

206+
* ``PMA_SSL`` - define ssl usage for MySQL server
207+
208+
* ``PMA_SSLS`` - comma separated list of 0 and 1 defining ssl usage for corresponding MySQL servers
209+
194210
```sh
195211
docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin:latest
196212
```
@@ -206,6 +222,8 @@ docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.tx
206222
- `PMA_CONTROLHOST`
207223
- `PMA_CONTROLUSER`
208224
- `PMA_CONTROLPASS`
225+
- `PMA_SSL`
226+
- `PMA_SSLS`
209227

210228
## Run the E2E tests for this docker image
211229

0 commit comments

Comments
 (0)