From 513a14cd836f64f4c03e7a381e3af24335a5d846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 5 May 2018 16:53:54 +0200 Subject: [PATCH] Document `ADMINER_DEFAULT_SERVER` --- adminer/content.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/adminer/content.md b/adminer/content.md index 8adff42b6..7503733b7 100644 --- a/adminer/content.md +++ b/adminer/content.md @@ -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: