- 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>
25 lines
481 B
YAML
25 lines
481 B
YAML
version: "3.8"
|
|
name: main
|
|
services:
|
|
bitcoin-core:
|
|
container_name: bitcoind-main
|
|
expose:
|
|
- 8332
|
|
ports:
|
|
- 8333:8333
|
|
environment:
|
|
- BITCOIN_CHAIN=main
|
|
|
|
core-lightning:
|
|
container_name: lightningd-main
|
|
command:
|
|
- --conf=/home/lightning/.lightning/main-config
|
|
- --bitcoin-rpcconnect=bitcoind
|
|
expose:
|
|
- 9735
|
|
ports:
|
|
- 9735:9735
|
|
env_file:
|
|
- ./assets/main-env
|
|
environment:
|
|
- BITCOIN_CHAIN=main |