- build vls and copy binary in final layer - update configs - add vls port, network, rust log and rpc url in env - compose: set env variable in compose only - dont separate env files, ease of access on env vars with compose - common across networks set in dockerfile Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
80 lines
1.6 KiB
YAML
80 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_CHAIN=test
|
|
|
|
volumes:
|
|
data:
|
|
name: bitcoin_data
|
|
external: true
|
|
clightning:
|
|
name: lightning_data
|
|
external: true
|
|
txoo_data:
|
|
name: txood_data
|
|
external: true
|
|
|
|
networks:
|
|
LN_testing:
|