mapp the db volume to a local directory
This commit is contained in:
parent
49f1ac1ef5
commit
008eb834c0
|
@ -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: .
|
||||||
|
|
Loading…
Reference in New Issue