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>
This commit is contained in:
Lakshya Singh
2023-09-26 00:40:53 +05:30
parent 0484ff6475
commit 5b0cb901cb
5 changed files with 68 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
version: "3.8"
name: regtest
services:
bitcoin-core:
container_name: bitcoind-regtest
expose:
- 38332
ports:
- 38333:38333
environment:
- BITCOIN_CHAIN=regtest
core-lightning:
container_name: lightningd-regtest
command:
- --conf=/home/lightning/.lightning/regtest-config
- --bitcoin-rpcconnect=bitcoind
expose:
- 19846
ports:
- 19846:19846
env_file:
- ./assets/regtest-env
environment:
- BITCOIN_CHAIN=regtest