compose: enable profile vls for vls service
- allow running all services without vls on same node Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
a851c5c0d4
commit
cdd28817e2
14
README.md
14
README.md
@ -112,7 +112,7 @@ docker volume create vls_data
|
||||
### Docker Compose Run
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
docker compose --profile vls up --build
|
||||
```
|
||||
|
||||
### Selecting Bitcoin Chains
|
||||
@ -125,11 +125,21 @@ To use override we have to pass it down both the config using `-f` flag:
|
||||
```bash
|
||||
export DOCKER_COMPOSE_OVERRIDE=docker-compose.testnet.yml
|
||||
export COMPOSE_PROJECT_NAME=testnet
|
||||
docker compose -f docker-compose.yml -f $DOCKER_COMPOSE_OVERRIDE up --build
|
||||
docker compose --profile vls -f docker-compose.yml -f $DOCKER_COMPOSE_OVERRIDE up --build
|
||||
```
|
||||
|
||||
__Note__: Even while using `testnet` running using the override is recommended as that will expose the `P2P` port for `bitcoind` and `P2P` port for `lightningd` on the host.
|
||||
|
||||
### Single Node without VLS
|
||||
|
||||
To run a single node without `vls` service we can use the same `docker-compose.yml` file in the main directory by just removing the `profile` flag `vls` from all commands.
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
Above command will run `bitcoind`, `lightningd` and `txood` services on a single node.
|
||||
|
||||
### Additional Regtest Commands
|
||||
|
||||
We have to run these commands after bitcoind is up and running.
|
||||
|
@ -66,6 +66,8 @@ services:
|
||||
context: ./vlsd
|
||||
image: vlsd
|
||||
container_name: vlsd-test
|
||||
profiles:
|
||||
- vls
|
||||
command:
|
||||
- --log-level=info
|
||||
- --connect=http://core-lightning:7701
|
||||
|
Loading…
x
Reference in New Issue
Block a user