From 2c51cb4271ff7471d4d0a1fa2346df74304792de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Jun 2017 15:30:15 +0200 Subject: [PATCH] Document how to customize themes in Docker image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/phpmyadmin/docker/issues/37 Signed-off-by: Michal Čihař --- doc/setup.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/setup.rst b/doc/setup.rst index 34a33c3ceb..344d5861dc 100644 --- a/doc/setup.rst +++ b/doc/setup.rst @@ -267,7 +267,7 @@ configuration file: .. seealso:: @@ -287,6 +287,12 @@ You can use following volumes to customize image behavior: Directory where PHP sessions are stored. You might want to share this for example when using :ref:`auth_signon`. +:file:`/www/themes/` + + Directory where phpMyAdmin looks for themes. By default only ones shipped + with phpMyAdmin are included, but you can include additional phpMyAdmin + themes (see :ref:`themes`) by using Docker volumes. + Docker Examples --------------- @@ -320,6 +326,12 @@ Running with additional configuration: 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/phpmyadmin +Running with additional theme: + +.. code-block:: sh + + docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 -v /custom/phpmyadmin/theme/:/www/themes/theme/ phpmyadmin/phpmyadmin + Using docker-compose -------------------- @@ -350,6 +362,7 @@ using the volumes directive: volumes: - /sessions - ~/docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php + - /custom/phpmyadmin/theme/:/www/themes/theme/ .. seealso:: :ref:`docker-custom`