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' version: '3'
volumes:
db_data:
services: services:
db: db:
image: postgres image: postgres
environment: environment:
- POSTGRES_DB=network_inventory - POSTGRES_DB=network_inventory
volumes: volumes:
- db_data:/var/lib/postgresql/data/ - ./db_data:/var/lib/postgresql/data/
web: web:
build: . build: .