From 779fd9fb3ea97875394c6129bf346afd34453940 Mon Sep 17 00:00:00 2001 From: Lakshya Singh Date: Thu, 19 Oct 2023 23:15:26 +0530 Subject: [PATCH] docs: regtest commands and compose name - regtest container name change - instead of name key in compose use env variable - txood_data volume creation Signed-off-by: Lakshya Singh --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 006529b..8b5cee8 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ``` docker volume create bitcoin_data docker volume create lightning_data +docker volume create txood_data ``` ## Docker Compose Run @@ -22,6 +23,7 @@ We have three possible overrides over the default `testnet` configuration in `do To use override we have to pass it down both the config using `-f` flag: ``` +export COMPOSE_PROJECT_NAME= docker compose -f docker-compose.yml -f up --build ``` @@ -33,18 +35,17 @@ We have to run these commands after bitcoind is up and running. Create Wallet: ``` -docker container exec -it bitcoind bitcoin-cli createwallet default +docker container exec bitcoind-regtest bitcoin-cli createwallet default ``` Generate Address for node: ``` -docker container exec -it bitcoind bitcoin-cli getnewaddress +docker container exec bitcoind-regtest bitcoin-cli getnewaddress ``` Generate Blocks ``` -docker container exec -it bitcoind bitcoin-cli generatetoaddress 50 $NODE_ADDRESS - +docker container exec bitcoind-regtest bitcoin-cli generatetoaddress 50 $NODE_ADDRESS ``` ### References