write the db data into a local folder
I prefer to have everything related to a project in one single directory that way I know where to look for it.
This commit is contained in:
parent
9800126def
commit
f81fabdaee
|
@ -1,8 +1,5 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
volumes:
|
|
||||||
db_data:
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
@ -10,7 +7,7 @@ services:
|
||||||
- POSTGRES_DB
|
- POSTGRES_DB
|
||||||
- POSTGRES_PASSWORD
|
- POSTGRES_PASSWORD
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data/
|
- ./db_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: nebucatnetzer/network_inventory
|
image: nebucatnetzer/network_inventory
|
||||||
|
|
Loading…
Reference in New Issue