Merge pull request #1212 from TimWolla/adminer-default-server

Document `ADMINER_DEFAULT_SERVER`
This commit is contained in:
yosifkit 2018-05-07 15:25:59 -07:00 committed by GitHub
commit 784d361661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -78,6 +78,14 @@ $ docker run --link some_database:db -p 8080:8080 -e ADMINER_DESIGN='nette' %%IM
To use a custom design you can add a file called `/var/www/html/adminer.css`.
### Usage with external server
You can specify the default host with the `ADMINER_DEFAULT_SERVER` environment variable. This is useful if you are connecting to an external server or a docker container named something other than the default `db`.
```console
docker run -p 8080:8080 -e ADMINER_DEFAULT_SERVER=mysql %%IMAGE%%
```
## Supported Drivers
While Adminer supports a wide range of database drivers this image only supports the following out of the box: