Persist postgres data between runs using docker-compose

This commit is contained in:
Nick Romano 2017-04-27 14:37:08 -07:00
parent 7caa2cada4
commit 0d3b09c058
No known key found for this signature in database
GPG Key ID: DC562A805DC60A40
1 changed files with 5 additions and 0 deletions

View File

@ -46,3 +46,8 @@ services:
db:
image: postgres
volumes:
- datavolume:/var/lib/postgresql/data
volumes:
datavolume: