From 5e2f3b8d596819a2086fef1f607a5f3efc865997 Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Tue, 11 Sep 2018 10:13:41 -0500 Subject: [PATCH] Fix #166, reorder docker instructions --- install.rst | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install.rst b/install.rst index b0df82b49..ea6ab76f1 100644 --- a/install.rst +++ b/install.rst @@ -239,9 +239,15 @@ PostgREST outputs basic request logging to stdout. When running it in an SSH ses Docker ====== -The official PostgREST Docker image consults an internal :code:`/etc/postgrest.conf` file. To customize this file you can either mount a replacement configuration file into the container, or use environment variables. The environment variables will be interpolated into the default config file. +You can get the `official PostgREST Docker image `_ with: -These variables match the options shown in our :ref:`configuration` section, except they are capitalized, have a prefix, and use underscores. To get a list of the available environment variables, run this: +.. code-block:: bash + + docker pull postgrest/postgrest + +The image consults an internal ``/etc/postgrest.conf`` file. To customize this file you can either mount a replacement configuration file into the container, or use environment variables. The environment variables will be interpolated into the default config file. + +These variables match the options shown in our :ref:`configuration` section, except they are capitalized, have a ``PGRST_`` prefix, and use underscores. To get a list of the available environment variables, run this: .. code-block:: bash @@ -256,9 +262,6 @@ The first way to run PostgREST in Docker is to connect it to an existing native .. code-block:: bash - # Pull the official image - docker pull postgrest/postgrest - # Run the server docker run --rm --net=host -p 3000:3000 \ -e PGRST_DB_URI="postgres://postgres@localhost/postgres" \