From b32ba7a409a984d1ea3e614dc7ae958b47d7a8c7 Mon Sep 17 00:00:00 2001 From: agent3bood Date: Wed, 23 May 2018 17:46:13 +0400 Subject: [PATCH] Add volume to docker-compose --- install.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.rst b/install.rst index 2cb7186ff..c54ebdd17 100644 --- a/install.rst +++ b/install.rst @@ -225,6 +225,9 @@ To avoid having to install the database at all, you can run both it and the serv POSTGRES_DB: app_db POSTGRES_USER: app_user POSTGRES_PASSWORD: password + # Uncomment this if you want to persist the data. + # volumes: + # - "./pgdata:/var/lib/postgresql/data" Go into the directory where you saved this file and run :code:`docker-compose up`. You will see the logs of both the database and PostgREST, and be able to access the latter on port 3000.