regtest volumes and expose vls port
This commit is contained in:
parent
05bde9e6f9
commit
ddb2b4ef30
@ -102,6 +102,8 @@ You can run `bitcoind`, `lightningd`, `txood` and `vlsd` on a single node using
|
|||||||
|
|
||||||
### Volume Creation
|
### Volume Creation
|
||||||
|
|
||||||
|
Testnet:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker volume create bitcoin_data
|
docker volume create bitcoin_data
|
||||||
docker volume create lightning_data
|
docker volume create lightning_data
|
||||||
@ -109,6 +111,8 @@ docker volume create txoo_data
|
|||||||
docker volume create vls_data
|
docker volume create vls_data
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The `regtest` docker compose configuration doesn't use external volumes. The automatically created volumes can be destroyed via the `down --volumes` docker compose command.
|
||||||
|
|
||||||
### Docker Compose Run
|
### Docker Compose Run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -144,9 +148,11 @@ Above command will run `bitcoind`, `lightningd` and `txood` services on a single
|
|||||||
|
|
||||||
We have to run these commands after bitcoind is up and running.
|
We have to run these commands after bitcoind is up and running.
|
||||||
|
|
||||||
Create Wallet:
|
Create wallet and make it load automatically:
|
||||||
```bash
|
```bash
|
||||||
docker container exec bitcoind-regtest bitcoin-cli createwallet default
|
docker container exec bitcoind-regtest bitcoin-cli createwallet default
|
||||||
|
docker container exec bitcoind-regtest bitcoin-cli unloadwallet default
|
||||||
|
docker container exec bitcoind-regtest bitcoin-cli loadwallet default true
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate Address for node:
|
Generate Address for node:
|
||||||
|
@ -2,6 +2,8 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
bitcoin-core:
|
bitcoin-core:
|
||||||
container_name: bitcoind-regtest
|
container_name: bitcoind-regtest
|
||||||
|
volumes:
|
||||||
|
- bitcoin_regtest:/home/bitcoin/.bitcoin
|
||||||
expose:
|
expose:
|
||||||
- 38332
|
- 38332
|
||||||
ports:
|
ports:
|
||||||
@ -11,6 +13,8 @@ services:
|
|||||||
|
|
||||||
core-lightning:
|
core-lightning:
|
||||||
container_name: lightningd-regtest
|
container_name: lightningd-regtest
|
||||||
|
volumes:
|
||||||
|
- lightning_regtest:/home/lightning/.lightning
|
||||||
command:
|
command:
|
||||||
- --conf=/home/lightning/.lightning/regtest-config
|
- --conf=/home/lightning/.lightning/regtest-config
|
||||||
- --bitcoin-rpcconnect=bitcoind
|
- --bitcoin-rpcconnect=bitcoind
|
||||||
@ -18,12 +22,16 @@ services:
|
|||||||
- 19846
|
- 19846
|
||||||
ports:
|
ports:
|
||||||
- 19846:19846
|
- 19846:19846
|
||||||
|
- 37701:7701
|
||||||
environment:
|
environment:
|
||||||
- VLS_NETWORK=regtest
|
- VLS_NETWORK=regtest
|
||||||
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
||||||
|
|
||||||
txoo:
|
txoo:
|
||||||
container_name: txoo-regtest
|
container_name: txoo-regtest
|
||||||
|
volumes:
|
||||||
|
- txoo_regtest:/root/.txoo/
|
||||||
|
- bitcoin_regtest:/root/.bitcoin/
|
||||||
command:
|
command:
|
||||||
- -r http://rpcuser:VLSsigner1@bitcoind:38332
|
- -r http://rpcuser:VLSsigner1@bitcoind:38332
|
||||||
environment:
|
environment:
|
||||||
@ -31,6 +39,14 @@ services:
|
|||||||
|
|
||||||
vls:
|
vls:
|
||||||
container_name: vlsd-regtest
|
container_name: vlsd-regtest
|
||||||
|
volumes:
|
||||||
|
- vls_regtest:/home/vls/.lightning-signer
|
||||||
environment:
|
environment:
|
||||||
- VLS_NETWORK=regtest
|
- VLS_NETWORK=regtest
|
||||||
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
bitcoin_regtest:
|
||||||
|
lightning_regtest:
|
||||||
|
txoo_regtest:
|
||||||
|
vls_regtest:
|
||||||
|
@ -7,3 +7,4 @@ services:
|
|||||||
core-lightning:
|
core-lightning:
|
||||||
ports:
|
ports:
|
||||||
- 19735:19735
|
- 19735:19735
|
||||||
|
- 17701:7701
|
||||||
|
@ -45,7 +45,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./txood
|
context: ./txood
|
||||||
image: txood:${IMAGE_TAG:-latest}
|
image: txood:${IMAGE_TAG:-latest}
|
||||||
container_name: txood-test
|
container_name: txoo-test
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
command:
|
||||||
- -r http://rpcuser:VLSsigner1@bitcoind:18332
|
- -r http://rpcuser:VLSsigner1@bitcoind:18332
|
||||||
|
Loading…
x
Reference in New Issue
Block a user