docker: make blockchain persistant

This commit is contained in:
Andrey Samokhvalov 2017-01-13 23:24:07 +03:00 committed by Olaoluwa Osuntokun
parent be66e039f1
commit 67b300fdc4
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ services:
context: btcd/
volumes:
- shared:/rpc
- blockchain:/data
environment:
- RPCUSER
- RPCPASS
@ -59,3 +60,8 @@ volumes:
# btcctl and lnd containers.
shared:
driver: local
# blockhain volume is needed for maintaining blockchain persistance
# during btcd container recreation.
blockchain:
driver: local