mapp the db volume to a local directory

This commit is contained in:
Andreas Zweili 2020-02-15 00:29:49 +01:00
parent 49f1ac1ef5
commit 008eb834c0
1 changed files with 1 additions and 4 deletions

View File

@ -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: .