Skip to content

Commit

Permalink
Update the examples to have something more explicit for Docker comman…
Browse files Browse the repository at this point in the history
…d line examples

Ref: phpmyadmin/phpmyadmin@7faf6a5
  • Loading branch information
williamdes committed Aug 9, 2022
1 parent 0ed2e66 commit 905cae8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ First you need to run a MySQL or MariaDB server in Docker, and the phpMyAdmin im
linked to the running database container:

```sh
docker run --name myadmin -d --link mysql_db_server:db -p 8080:80 phpmyadmin
docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 phpmyadmin:latest
```

## Usage with external server
Expand All @@ -70,15 +70,15 @@ You can specify a MySQL host in the `PMA_HOST` environment variable. You can als
use `PMA_PORT` to specify the port of the server in case it's not the default one:

```sh
docker run --name myadmin -d -e PMA_HOST=dbhost -p 8080:80 phpmyadmin
docker run --name phpmyadmin -d -e PMA_HOST=dbhost -p 8080:80 phpmyadmin:latest
```

## Usage with arbitrary server

You can use arbitrary servers by adding the environment variable `PMA_ARBITRARY=1` to the startup command:

```sh
docker run --name myadmin -d -e PMA_ARBITRARY=1 -p 8080:80 phpmyadmin
docker run --name phpmyadmin -d -e PMA_ARBITRARY=1 -p 8080:80 phpmyadmin:latest
```

## Usage with docker-compose and arbitrary server
Expand Down Expand Up @@ -118,7 +118,7 @@ in it, and then linking it into the container using:
On the `docker run` line like this:

```sh
docker run --name myadmin -d --link mysql_db_server:db -p 8080:80 -v /some/local/directory/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php phpmyadmin
docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 -v /some/local/directory/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php phpmyadmin:latest
```

Be sure to have `<?php` as your first line of the configuration file or the contents will not be detected as PHP code.
Expand Down Expand Up @@ -169,7 +169,7 @@ Set the variable ``PMA_ABSOLUTE_URI`` to the fully-qualified path (``https://pma
For usage with Docker secrets, appending ``_FILE`` to the ``PMA_PASSWORD`` environment variable is allowed (it overrides ``PMA_PASSWORD`` if it is set):

```sh
docker run --name myadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin
docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin:latest
```

#### Variables that can be read from a file using ``_FILE``
Expand Down

0 comments on commit 905cae8

Please sign in to comment.