From 67b300fdc4e28b24c402a808af97ca2dcacbd60b Mon Sep 17 00:00:00 2001 From: Andrey Samokhvalov Date: Fri, 13 Jan 2017 23:24:07 +0300 Subject: [PATCH] docker: make blockchain persistant --- docker/docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3302ef42..60d7147b 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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