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 <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2023-10-19 23:15:26 +05:30
parent b070cbdc96
commit 779fd9fb3e
No known key found for this signature in database
GPG Key ID: D3239BA6109A2CE7

View File

@ -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=<bitcoin_chain>
docker compose -f docker-compose.yml -f <override_file> 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