docker: make blockchain persistant

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-01-17 16:56:28 -08:00
1 parent be66e039f1
commit 67b300fdc4
1 file changed
+6
+6
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