Update docker configuration
This commit is contained in:
+10
-10
@@ -32,6 +32,8 @@ The configuration file must contain a set of key value pairs. At minimum you mus
|
||||
|
||||
The user specified in the db-uri is also known as the authenticator role. For more information about the anonymous vs authenticator roles see the :ref:`roles`.
|
||||
|
||||
.. _config_full_list:
|
||||
|
||||
Here is the full list of configuration parameters.
|
||||
|
||||
======================== ======= ================= ========
|
||||
@@ -65,8 +67,6 @@ role-claim-key String .role
|
||||
raw-media-types String
|
||||
======================== ======= ================= ========
|
||||
|
||||
You can also set these configuration parameters using environment variables. They are capitalized, have a ``PGRST_`` prefix, and use underscores. For example: ``PGRST_DB_URI`` corresponds to ``db-uri``.
|
||||
|
||||
.. _db-uri:
|
||||
|
||||
db-uri
|
||||
@@ -386,6 +386,13 @@ raw-media-types
|
||||
|
||||
raw-media-types="image/png, text/xml"
|
||||
|
||||
.. _env_variables_config:
|
||||
|
||||
Environment Variables
|
||||
=====================
|
||||
|
||||
You can also set these :ref:`configuration parameters <config_full_list>` using environment variables. They are capitalized, have a ``PGRST_`` prefix, and use underscores. For example: ``PGRST_DB_URI`` corresponds to ``db-uri`` and ``PGRST_APP_SETTINGS_*`` to ``app.settings.*``.
|
||||
|
||||
.. _config_reloading:
|
||||
|
||||
Configuration Reloading
|
||||
@@ -397,14 +404,7 @@ To reload the configuration without restarting the PostgREST server, send a SIGU
|
||||
|
||||
killall -SIGUSR2 postgrest
|
||||
|
||||
To reload the config in docker:
|
||||
|
||||
.. code:: bash
|
||||
|
||||
docker kill -s SIGUSR2 <container>
|
||||
|
||||
# or in docker-compose
|
||||
docker-compose kill -s SIGUSR2 <service>
|
||||
This method does not reload :ref:`env_variables_config` and it will not work for reloading a Docker container configuration. In these cases, you need to restart the PostgREST server or use :ref:`in_db_config` as an alternative.
|
||||
|
||||
.. important::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user