Skip to content

Commit

Permalink
Update tut0.rst (#159)
Browse files Browse the repository at this point in the history
* Update tut0.rst

Add hint about port mapping for users with pre-existing PostgreSQL DB
  • Loading branch information
PJLindsay authored and steve-chavez committed Jul 13, 2018
1 parent cfaf588 commit a7fd694
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tutorials/tut0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ If Docker is not installed, you can get it `here <https://www.docker.com/communi
This will run the Docker instance as a daemon and expose port 5432 to the host system so that it looks like an ordinary PostgreSQL server to the rest of the system.

.. note::

If you have a pre-existing PostgreSQL database running on port 5432, you'll get an error like "bind: address already in use". Here's how to fix it:

.. code-block:: bash
sudo docker run --name tutorial -p 5433:5432 \
-e POSTGRES_PASSWORD=mysecretpassword \
-d postgres
Step 3. Install PostgREST
-------------------------

Expand Down

0 comments on commit a7fd694

Please sign in to comment.