diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-07-26 11:22:54 -0700 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-07-26 16:36:16 -0700 |
commit | 4a6ee099cb28e575614a9a58da3da9019a3a03d2 (patch) | |
tree | ef8870b53cf19e6b6215f035e65825c165ab84c9 /pharos-dashboard/readme.txt | |
parent | 43803375b8f30150026362fec4135f4eb8b75bd6 (diff) |
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>
Diffstat (limited to 'pharos-dashboard/readme.txt')
-rw-r--r-- | pharos-dashboard/readme.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pharos-dashboard/readme.txt b/pharos-dashboard/readme.txt index b21320f..2a25912 100644 --- a/pharos-dashboard/readme.txt +++ b/pharos-dashboard/readme.txt @@ -18,6 +18,7 @@ Deployment: - install docker, docker-compose and bower - run 'bower install' in ./src/static/ to fetch javascript dependencies - run 'make build' to build the containers +- run 'make data' - run 'make up' to run the dashboard Updating: @@ -32,4 +33,4 @@ If there is migrations that need user input (like renaming a field), they need t Logs / Shell access: -- there is some shortcuts in the makefile
\ No newline at end of file +- there is some shortcuts in the makefile |