vls-container/docker-compose.yml
Lakshya Singh d254b95cbe
cln: install clnrest dependencies
expose clnrest port to outside by default
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2024-06-12 05:54:41 +05:30

120 lines
2.6 KiB
YAML

version: "3.8"
services:
bitcoin-core:
build:
context: ./bitcoind
args:
- BITCOIN_VERSION
- BITCOIN_SHA256SUMS_HASH
image: bitcoind:${IMAGE_TAG:-latest}
container_name: bitcoind-test
volumes:
- bitcoin_data:/home/bitcoin/.bitcoin
expose:
- 18332
networks:
lightning:
aliases:
- bitcoind
environment:
- BITCOIN_CHAIN=test
core-lightning:
build:
context: ./lightningd
args:
- CORE_LIGHTNING_REPO
- CORE_LIGHTNING_GIT_HASH
- CLBOSS_REPO
- CLBOSS_GIT_HASH
- CLN_PLUGINS_REPO
- CLN_PLUGINS_GIT_HASH
- VLS_REPO
- VLS_GIT_HASH
image: lightningd:${IMAGE_TAG:-latest}
container_name: lightningd-test
command:
- --conf=/home/lightning/.lightning/testnet-config
- --bitcoin-rpcconnect=bitcoind
- --log-file=- # stdout
- --log-file=/home/lightning/.lightning/testnet/lightning.log
volumes:
- lightning_data:/home/lightning/.lightning
expose:
- 19735
- 7701
ports:
- 3010:3010
networks:
- lightning
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
args:
- TXOO_REPO
- TXOO_GIT_HASH
image: txood:${IMAGE_TAG:-latest}
container_name: txood-test
restart: unless-stopped
networks:
- lightning
volumes:
- txoo_data:/root/.txoo/
- bitcoin_data:/root/.bitcoin/
depends_on:
bitcoin-core:
condition: service_healthy
environment:
- BITCOIN_NETWORK=testnet
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:18332
vls:
build:
context: ./vlsd
args:
- VLS_REPO
- VLS_GIT_HASH
image: vlsd:${IMAGE_TAG:-latest}
container_name: vlsd-test
profiles:
- vls
command:
- --log-level=info
- --connect=http://core-lightning:7701
networks:
- lightning
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:
lightning: