diff --git a/assets/bitcoin.conf b/assets/bitcoin.conf index f4aa604..0a3978c 100644 --- a/assets/bitcoin.conf +++ b/assets/bitcoin.conf @@ -2,15 +2,29 @@ ## bitcoin.conf configuration file. Lines beginning with # are comments. ## -[test] server=1 +rpcallowip=0.0.0.0/0 +whitelist=0.0.0.0/0 +txindex=1 +blockfilterindex=1 + +[main] +rpcbind=0.0.0.0 +rpcuser=rpcuser +rpcpassword=VLSsigner1 +rpcport=8332 +port=8333 + +[test] +rpcbind=0.0.0.0 rpcuser=rpcuser rpcpassword=VLSsigner1 rpcport=18332 +port=18333 + +[regtest] rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 -whitelist=0.0.0.0/0 -zmqpubrawblock=tcp://bitcoind:38332 -zmqpubrawtx=tcp://bitcoind:38333 -txindex=1 -blockfilterindex=1 \ No newline at end of file +rpcuser=rpcuser +rpcpassword=VLSsigner1 +rpcport=38332 +port=38333 \ No newline at end of file diff --git a/assets/main-config b/assets/main-config new file mode 100644 index 0000000..95d6daa --- /dev/null +++ b/assets/main-config @@ -0,0 +1,9 @@ +network=regtest +bitcoin-rpcuser=rpcuser +bitcoin-rpcpassword=VLSsigner1 +bitcoin-rpcport=8332 +log-level=info +max-locktime-blocks=288 +important-plugin=/usr/bin/clboss +clboss-auto-close=true +bind-addr=0.0.0.0:9735 \ No newline at end of file diff --git a/assets/main-env b/assets/main-env new file mode 100644 index 0000000..bad59e7 --- /dev/null +++ b/assets/main-env @@ -0,0 +1,4 @@ +VLS_PORT=17701 +VLS_NETWORK=regtest +BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:8332 +RUST_LOG=info \ No newline at end of file diff --git a/assets/regtest-config b/assets/regtest-config new file mode 100644 index 0000000..545c024 --- /dev/null +++ b/assets/regtest-config @@ -0,0 +1,9 @@ +network=regtest +bitcoin-rpcuser=rpcuser +bitcoin-rpcpassword=VLSsigner1 +bitcoin-rpcport=38332 +log-level=info +max-locktime-blocks=288 +important-plugin=/usr/bin/clboss +clboss-auto-close=true +bind-addr=0.0.0.0:19846 \ No newline at end of file diff --git a/assets/regtest-env b/assets/regtest-env new file mode 100644 index 0000000..a21ee38 --- /dev/null +++ b/assets/regtest-env @@ -0,0 +1,4 @@ +VLS_PORT=17701 +VLS_NETWORK=regtest +BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332 +RUST_LOG=info \ No newline at end of file diff --git a/assets/testnet-config b/assets/testnet-config index 3980616..06f71f8 100644 --- a/assets/testnet-config +++ b/assets/testnet-config @@ -5,4 +5,5 @@ bitcoin-rpcport=18332 log-level=info max-locktime-blocks=288 important-plugin=/usr/bin/clboss -clboss-auto-close=true \ No newline at end of file +clboss-auto-close=true +bind-addr=0.0.0.0:19735 \ No newline at end of file diff --git a/lightningd/Dockerfile b/lightningd/Dockerfile index d8df184..5c64431 100644 --- a/lightningd/Dockerfile +++ b/lightningd/Dockerfile @@ -97,6 +97,8 @@ RUN mkdir -p "${BITCOIND_HOME}" && \ COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf COPY assets/testnet-config /testnet-config +COPY assets/regtest-config /regtest-config +COPY assets/main-config /main-config USER lightning diff --git a/lightningd/entrypoint.sh b/lightningd/entrypoint.sh index dcb89b1..a9fcbfa 100755 --- a/lightningd/entrypoint.sh +++ b/lightningd/entrypoint.sh @@ -2,6 +2,8 @@ set -e cp -u /testnet-config ${LIGHTNINGD_DATA}/testnet-config +cp -u /regtest-config ${LIGHTNINGD_DATA}/regtest-config +cp -u /main-config ${LIGHTNINGD_DATA}/main-config export GREENLIGHT_VERSION=$(lightningd --version)