diff --git a/doc/setup.rst b/doc/setup.rst
index 25b604b5f8..1f3763fca8 100644
--- a/doc/setup.rst
+++ b/doc/setup.rst
@@ -160,6 +160,11 @@ by linking your database container to ``db`` for phpMyAdmin (by specifying
to you to setup networking in Docker to allow phpMyAdmin container to access
the database container over network).
+.. _docker-vars:
+
+Docker environment variables
+----------------------------
+
You can configure several phpMyAdmin features using environment variables:
.. envvar:: PMA_ARBITRARY
@@ -222,12 +227,29 @@ By default, :ref:`cookie` is used, but if :envvar:`PMA_USER` and
documentation for `MariaDB container `_
or `MySQL container `_.
+.. _docker-custom:
+
+Customizing configuration
+-------------------------
+
Additionally configuration can be tweaked by :file:`/etc/phpmyadmin/config.user.inc.php`. If
this file exists, it will be loaded after configuration generated from above
environment variables, so you can override any configuration variable. This
configuraiton can be added as a volume when invoking docker using
`-v /some/local/directory/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php` parameters.
+Note that the supplied configuration file is applied after :ref:`docker-vars`,
+but you can override any of the values.
+
+For example to change default behaviour of CSV export you can use following
+configuration file:
+
+.. code-block:: php
+
+