vls-container/docker-compose.yml
Lakshya Singh b02b64ece1
txoo: compose env var set network not chain
- no need of using switch in entrypoint
- directly set the network instead of chain
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2023-11-05 16:24:11 +05:30

81 lines
1.6 KiB
YAML

version: "3.8"
services:
bitcoin-core:
build:
dockerfile: ./bitcoind/Dockerfile
context: .
image: bitcoind
container_name: bitcoind-test
volumes:
- data:/home/bitcoin/.bitcoin
expose:
- 18332
networks:
LN_testing:
aliases:
- bitcoind
environment:
- BITCOIN_CHAIN=test
core-lightning:
build:
dockerfile: ./lightningd/Dockerfile
context: .
image: lightningd
container_name: lightningd-test
command:
- --conf=/home/lightning/.lightning/testnet-config
- --bitcoin-rpcconnect=bitcoind
volumes:
- clightning:/home/lightning/.lightning
expose:
- 19735
- 7701
networks:
- LN_testing
depends_on:
bitcoin-core:
condition: service_healthy
environment:
- BITCOIN_CHAIN=test
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:18332
- RUST_LOG=info
- VLS_NETWORK=testnet
- VLS_BIND=0.0.0.0
- VLS_PORT=7701
txoo:
build:
dockerfile: ./txood/Dockerfile
context: .
image: txood
container_name: txood-test
restart: unless-stopped
command:
- -r http://rpcuser:VLSsigner1@bitcoind:18332
networks:
- LN_testing
volumes:
- txoo_data:/root/.txoo/
- data:/root/.bitcoin/
depends_on:
bitcoin-core:
condition: service_healthy
environment:
- BITCOIN_NETWORK=testnet
volumes:
data:
name: bitcoin_data
external: true
clightning:
name: lightning_data
external: true
txoo_data:
name: txood_data
external: true
networks:
LN_testing: