regtest volumes and expose vls port

This commit is contained in:
Devrandom 2023-12-06 16:37:58 +01:00
parent 05bde9e6f9
commit ddb2b4ef30
4 changed files with 26 additions and 3 deletions

View File

@ -102,6 +102,8 @@ You can run `bitcoind`, `lightningd`, `txood` and `vlsd` on a single node using
### Volume Creation
Testnet:
```bash
docker volume create bitcoin_data
docker volume create lightning_data
@ -109,6 +111,8 @@ docker volume create txoo_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
```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.
Create Wallet:
Create wallet and make it load automatically:
```bash
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:

View File

@ -2,6 +2,8 @@ version: "3.8"
services:
bitcoin-core:
container_name: bitcoind-regtest
volumes:
- bitcoin_regtest:/home/bitcoin/.bitcoin
expose:
- 38332
ports:
@ -11,6 +13,8 @@ services:
core-lightning:
container_name: lightningd-regtest
volumes:
- lightning_regtest:/home/lightning/.lightning
command:
- --conf=/home/lightning/.lightning/regtest-config
- --bitcoin-rpcconnect=bitcoind
@ -18,12 +22,16 @@ services:
- 19846
ports:
- 19846:19846
- 37701:7701
environment:
- VLS_NETWORK=regtest
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
txoo:
container_name: txoo-regtest
volumes:
- txoo_regtest:/root/.txoo/
- bitcoin_regtest:/root/.bitcoin/
command:
- -r http://rpcuser:VLSsigner1@bitcoind:38332
environment:
@ -31,6 +39,14 @@ services:
vls:
container_name: vlsd-regtest
volumes:
- vls_regtest:/home/vls/.lightning-signer
environment:
- VLS_NETWORK=regtest
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
volumes:
bitcoin_regtest:
lightning_regtest:
txoo_regtest:
vls_regtest:

View File

@ -7,3 +7,4 @@ services:
core-lightning:
ports:
- 19735:19735
- 17701:7701

View File

@ -45,7 +45,7 @@ services:
build:
context: ./txood
image: txood:${IMAGE_TAG:-latest}
container_name: txood-test
container_name: txoo-test
restart: unless-stopped
command:
- -r http://rpcuser:VLSsigner1@bitcoind:18332