mapp the db volume to a local directory
This commit is contained in:
parent
49f1ac1ef5
commit
008eb834c0
|
@ -1,15 +1,12 @@
|
|||
version: '3'
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
environment:
|
||||
- POSTGRES_DB=network_inventory
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data/
|
||||
- ./db_data:/var/lib/postgresql/data/
|
||||
|
||||
web:
|
||||
build: .
|
||||
|
|
Loading…
Reference in New Issue