vls-container/docker-compose.yml
Lakshya Singh f4c13e1a15
dockerfile: reduce interval and env config
- bitcoind and cln reduce healthcheck time interval
- cln healthcheck no need to use switch case instead use VLS_NETWORK
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2023-11-25 12:01:33 +05:30

99 lines
2.0 KiB
YAML

version: "3.8"
services:
bitcoin-core:
build:
context: ./bitcoind
image: bitcoind
container_name: bitcoind-test
volumes:
- bitcoin_data:/home/bitcoin/.bitcoin
expose:
- 18332
networks:
LN_testing:
aliases:
- bitcoind
environment:
- BITCOIN_CHAIN=test
core-lightning:
build:
context: ./lightningd
image: lightningd
container_name: lightningd-test
command:
- --conf=/home/lightning/.lightning/testnet-config
- --bitcoin-rpcconnect=bitcoind
volumes:
- lightning_data:/home/lightning/.lightning
expose:
- 19735
- 7701
networks:
- LN_testing
depends_on:
bitcoin-core:
condition: service_healthy
environment:
- 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:
context: ./txood
image: txood
container_name: txood-test
restart: unless-stopped
command:
- -r http://rpcuser:VLSsigner1@bitcoind:18332
networks:
- LN_testing
volumes:
- txoo_data:/root/.txoo/
- bitcoin_data:/root/.bitcoin/
depends_on:
bitcoin-core:
condition: service_healthy
environment:
- BITCOIN_NETWORK=testnet
vls:
build:
context: ./vlsd
image: vlsd
container_name: vlsd-test
profiles:
- vls
command:
- --log-level=info
- --connect=http://core-lightning:7701
networks:
- LN_testing
volumes:
- vls_data:/home/vls/.lightning-signer
environment:
- VLS_NETWORK=testnet
- VLS_PERMISSIVE=1
- RUST_LOG=info
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:18332
volumes:
bitcoin_data:
name: bitcoin_data
external: true
lightning_data:
name: lightning_data
external: true
txoo_data:
name: txoo_data
external: true
vls_data:
name: vls_data
external: true
networks:
LN_testing: