Revert "mapp the db volume to a local directory"

This reverts commit 008eb834c0.
For development it's currently easier if it's a normal docker volume otherwise
some editors like Visual Studio Code freak out because they can't access the
db_data folder.
This commit is contained in:
Andreas Zweili 2020-02-15 15:07:42 +01:00
parent 3a9b5cfbde
commit abe7c93b18
1 changed files with 4 additions and 1 deletions

View File

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