From 2aa1854e2492495e1010c6b90503522237777640 Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Fri, 29 Sep 2017 17:06:43 +0900 Subject: [PATCH] missing files --- Regtest/README.md | 5 ++++ Regtest/docker-compose.yml | 48 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 Regtest/README.md create mode 100644 Regtest/docker-compose.yml diff --git a/Regtest/README.md b/Regtest/README.md new file mode 100644 index 0000000..0b8a563 --- /dev/null +++ b/Regtest/README.md @@ -0,0 +1,5 @@ +# About this docker-compose + +This docker-compose shows how to configure postgres, bitcoind, NBXplorer and BTCPay. +It exposes BTCPay on the host address http://localhost:8080/. +It also exposes Bitcoin Core RPC which you can access through port 8081 `bitcoin-cli -regtest -rpcport=8081 -rpcpassword=DwubwWsoo3 -rpcuser=ceiwHEbqWI83 getblockcount`. \ No newline at end of file diff --git a/Regtest/docker-compose.yml b/Regtest/docker-compose.yml new file mode 100644 index 0000000..ac6fa78 --- /dev/null +++ b/Regtest/docker-compose.yml @@ -0,0 +1,48 @@ +version: "3" + +services: + + btcpayserver: + image: nicolasdorier/btcpayserver:1.0.0.2 + ports: + - 8080:49392 + expose: + - "49392" + environment: + BTCPAY_POSTGRES: "User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver" + BTCPAY_NETWORK: regtest + BTCPAY_EXPLORERURL: http://nbxplorer:32838/ + BTCPAY_BIND: 0.0.0.0:49392 + links: + - nbxplorer + - postgres + + nbxplorer: + image: nicolasdorier/nbxplorer:1.0.0.13 + expose: + - "32838" + environment: + NBXPLORER_NETWORK: regtest + NBXPLORER_RPCURL: http://bitcoind:43782/ + NBXPLORER_RPCUSER: ceiwHEbqWI83 + NBXPLORER_RPCPASSWORD: DwubwWsoo3 + NBXPLORER_NODEENDPOINT: bitcoind:8332 + NBXPLORER_BIND: 0.0.0.0:32838 + NBXPLORER_NOAUTH: 1 + links: + - bitcoind + + bitcoind: + image: nicolasdorier/bitcoin:0.15.0.1 + environment: + BITCOIN_EXTRA_ARGS: "regtest=1\nrpcport=43782\nport=8332" + BITCOIN_RPC_USER: ceiwHEbqWI83 + BITCOIN_RPC_PASSWORD: DwubwWsoo3 + ports: + - 8081:43782 + expose: + - "43782" + - "8332" + + postgres: + image: postgres:9.6.5