vls-container/docker-compose.yml
Lakshya Singh 5b0cb901cb
feat: allow docker compose overrides
- use file override to handle multiple networks
- expose and map only required ports
- name containers differently
- add environment for chain variable
- dont expose ports in image
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
2023-09-29 23:27:39 +05:30

52 lines
1008 B
YAML

version: "3.8"
services:
bitcoin-core:
build:
dockerfile: ./bitcoind/Dockerfile
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
image: lightningd
container_name: lightningd-test
command:
- --conf=/home/lightning/.lightning/test-config
- --bitcoin-rpcconnect=bitcoind
volumes:
- clightning:/home/lightning/.lightning
expose:
- 19735
networks:
- LN_testing
depends_on:
bitcoin-core:
condition: service_healthy
restart: true
env_file:
- ./assets/test-env
environment:
- BITCOIN_CHAIN=test
volumes:
data:
name: bitcoin_data
external: true
clightning:
name: lightning_data
external: true
networks:
LN_testing: