write the db data into a local folder

I prefer to have everything related to a project in one single directory
that way I know where to look for it.
This commit is contained in:
Andreas Zweili 2020-07-14 20:56:56 +02:00
parent 9800126def
commit f81fabdaee
1 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,5 @@
version: '3'
volumes:
db_data:
services:
db:
image: postgres
@ -10,7 +7,7 @@ services:
- POSTGRES_DB
- POSTGRES_PASSWORD
volumes:
- db_data:/var/lib/postgresql/data/
- ./db_data:/var/lib/postgresql/data/
web:
image: nebucatnetzer/network_inventory