Mount PostgreSQL Data from Persistent Volume 35/38235/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 26 Jul 2017 18:22:54 +0000 (11:22 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 26 Jul 2017 23:36:16 +0000 (16:36 -0700)
commit34f15a071a9df12986654593193235a21a774fc8
tree2a043a195b099f620ce85f217eda168dc6b6bea4
parent7cbe4e7447280d39fdb5a56b3d9a0fea437b5b15
Mount PostgreSQL Data from Persistent Volume

Each time the postgresql container is torn down the database is lost.
By using a presistent volume managed outside of docker compose, the
postgresql data can persist across updates and service restarts.

The volume needs to exist before the postgres container can start: this
is done with the 'make data' command.

Note: postgres container creates a volume at /var/lib/postgresql/data.
Mounting at this location ensures the data is persisted into the
external volume.

Change-Id: I958ba57fc735c594378d575bc7108bee0d30c1e3
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
tools/pharos-dashboard/Makefile
tools/pharos-dashboard/docker-compose.yml
tools/pharos-dashboard/readme.txt