2018-01-11 09:29:48 +01:00
|
|
|
version: "3"
|
2017-09-28 09:35:29 +02:00
|
|
|
|
2017-12-13 07:49:19 +01:00
|
|
|
# Run `docker-compose up dev` for bootstrapping your development environment
|
2018-03-17 07:45:44 +01:00
|
|
|
# Doing so will expose NBXplorer, Bitcoind RPC and postgres port to the host so that tests can Run,
|
2017-12-13 07:49:19 +01:00
|
|
|
# The Visual Studio launch setting `Docker-Regtest` is configured to use this environment.
|
2017-09-28 09:35:29 +02:00
|
|
|
services:
|
2017-09-28 11:49:24 +02:00
|
|
|
|
2017-10-02 17:41:03 +02:00
|
|
|
tests:
|
2017-09-28 11:49:24 +02:00
|
|
|
build:
|
2017-10-02 17:41:03 +02:00
|
|
|
context: ..
|
|
|
|
dockerfile: BTCPayServer.Tests/Dockerfile
|
2017-09-28 11:49:24 +02:00
|
|
|
environment:
|
2018-01-12 03:54:57 +01:00
|
|
|
TESTS_BTCRPCCONNECTION: server=http://bitcoind:43782;ceiwHEbqWI83:DwubwWsoo3
|
2018-01-11 09:29:48 +01:00
|
|
|
TESTS_LTCRPCCONNECTION: server=http://litecoind:43782;ceiwHEbqWI83:DwubwWsoo3
|
2018-01-12 03:54:57 +01:00
|
|
|
TESTS_BTCNBXPLORERURL: http://nbxplorer:32838/
|
|
|
|
TESTS_LTCNBXPLORERURL: http://nbxplorer:32838/
|
2017-10-02 17:41:03 +02:00
|
|
|
TESTS_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver
|
2017-10-12 09:33:53 +02:00
|
|
|
TESTS_PORT: 80
|
|
|
|
TESTS_HOSTNAME: tests
|
2018-07-01 09:10:17 +02:00
|
|
|
TEST_MERCHANTLIGHTNINGD: "type=clightning;server=/etc/merchant_lightningd_datadir/lightning-rpc"
|
|
|
|
TEST_CUSTOMERLIGHTNINGD: "type=clightning;server=/etc/customer_lightningd_datadir/lightning-rpc"
|
2018-07-10 12:33:54 +02:00
|
|
|
TEST_MERCHANTCHARGE: "type=charge;server=https://lightning-charged:9112/;api-token=foiewnccewuify;allowinsecure=true"
|
|
|
|
TEST_MERCHANTLND: "type=lnd-rest;server=https://lnd:lnd@127.0.0.1:53280/;allowinsecure=true"
|
2018-03-20 16:31:19 +01:00
|
|
|
TESTS_INCONTAINER: "true"
|
2017-10-12 09:33:53 +02:00
|
|
|
expose:
|
|
|
|
- "80"
|
2017-09-28 11:49:24 +02:00
|
|
|
links:
|
2018-02-23 07:21:42 +01:00
|
|
|
- dev
|
2017-10-12 09:33:53 +02:00
|
|
|
extra_hosts:
|
|
|
|
- "tests:127.0.0.1"
|
2018-03-20 16:31:19 +01:00
|
|
|
volumes:
|
|
|
|
- "customer_lightningd_datadir:/etc/customer_lightningd_datadir"
|
|
|
|
- "merchant_lightningd_datadir:/etc/merchant_lightningd_datadir"
|
2017-09-28 11:49:24 +02:00
|
|
|
|
2017-12-13 07:49:19 +01:00
|
|
|
# The dev container is not actually used, it is just handy to run `docker-compose up dev` to start all services
|
|
|
|
dev:
|
2018-02-28 09:01:10 +01:00
|
|
|
image: nicolasdorier/docker-bitcoin:0.16.0
|
2017-12-13 07:49:19 +01:00
|
|
|
environment:
|
|
|
|
BITCOIN_EXTRA_ARGS: |
|
|
|
|
regtest=1
|
|
|
|
connect=bitcoind:39388
|
|
|
|
links:
|
2018-01-12 03:54:57 +01:00
|
|
|
- nbxplorer
|
2018-01-08 17:56:37 +01:00
|
|
|
- postgres
|
2018-03-17 11:26:30 +01:00
|
|
|
- customer_lightningd
|
|
|
|
- merchant_lightningd
|
2018-02-23 07:21:42 +01:00
|
|
|
- lightning-charged
|
2018-05-11 23:59:24 +02:00
|
|
|
- customer_lnd
|
|
|
|
- merchant_lnd
|
|
|
|
|
|
|
|
devlnd:
|
|
|
|
image: nicolasdorier/docker-bitcoin:0.16.0
|
|
|
|
environment:
|
|
|
|
BITCOIN_EXTRA_ARGS: |
|
|
|
|
regtest=1
|
|
|
|
connect=bitcoind:39388
|
|
|
|
links:
|
|
|
|
- nbxplorer
|
|
|
|
- postgres
|
|
|
|
- customer_lnd
|
|
|
|
- merchant_lnd
|
|
|
|
|
|
|
|
|
2017-12-13 07:49:19 +01:00
|
|
|
|
2018-01-12 03:54:57 +01:00
|
|
|
nbxplorer:
|
2018-08-21 06:54:52 +02:00
|
|
|
image: nicolasdorier/nbxplorer:1.0.2.31
|
2017-10-02 17:41:03 +02:00
|
|
|
ports:
|
|
|
|
- "32838:32838"
|
2017-09-28 11:49:24 +02:00
|
|
|
expose:
|
|
|
|
- "32838"
|
2017-09-28 09:35:29 +02:00
|
|
|
environment:
|
|
|
|
NBXPLORER_NETWORK: regtest
|
2018-01-12 03:54:57 +01:00
|
|
|
NBXPLORER_CHAINS: "btc,ltc"
|
|
|
|
NBXPLORER_BTCRPCURL: http://bitcoind:43782/
|
|
|
|
NBXPLORER_BTCNODEENDPOINT: bitcoind:39388
|
|
|
|
NBXPLORER_BTCRPCUSER: ceiwHEbqWI83
|
|
|
|
NBXPLORER_BTCRPCPASSWORD: DwubwWsoo3
|
|
|
|
NBXPLORER_LTCRPCURL: http://litecoind:43782/
|
|
|
|
NBXPLORER_LTCNODEENDPOINT: litecoind:39388
|
|
|
|
NBXPLORER_LTCRPCUSER: ceiwHEbqWI83
|
|
|
|
NBXPLORER_LTCRPCPASSWORD: DwubwWsoo3
|
2017-09-28 11:49:24 +02:00
|
|
|
NBXPLORER_BIND: 0.0.0.0:32838
|
2017-11-06 09:31:02 +01:00
|
|
|
NBXPLORER_VERBOSE: 1
|
2017-09-28 09:35:29 +02:00
|
|
|
NBXPLORER_NOAUTH: 1
|
|
|
|
links:
|
|
|
|
- bitcoind
|
2018-01-12 03:54:57 +01:00
|
|
|
- litecoind
|
2017-12-02 17:56:26 +01:00
|
|
|
|
2017-09-28 09:35:29 +02:00
|
|
|
bitcoind:
|
2018-02-28 09:01:10 +01:00
|
|
|
image: nicolasdorier/docker-bitcoin:0.16.0
|
2017-09-28 09:35:29 +02:00
|
|
|
environment:
|
2017-11-27 09:01:11 +01:00
|
|
|
BITCOIN_EXTRA_ARGS: |
|
|
|
|
rpcuser=ceiwHEbqWI83
|
|
|
|
rpcpassword=DwubwWsoo3
|
|
|
|
regtest=1
|
2017-12-13 07:49:19 +01:00
|
|
|
server=1
|
2017-11-27 09:01:11 +01:00
|
|
|
rpcport=43782
|
|
|
|
port=39388
|
|
|
|
whitelist=0.0.0.0/0
|
2018-04-27 04:38:57 +02:00
|
|
|
zmqpubrawtx=tcp://0.0.0.0:28332
|
2018-05-12 07:19:26 +02:00
|
|
|
zmqpubrawblock=tcp://0.0.0.0:28332
|
2018-04-27 04:38:57 +02:00
|
|
|
zmqpubrawtxlock=tcp://0.0.0.0:28332
|
|
|
|
zmqpubhashblock=tcp://0.0.0.0:28332
|
2018-01-08 17:56:37 +01:00
|
|
|
ports:
|
|
|
|
- "43782:43782"
|
2018-04-27 04:38:57 +02:00
|
|
|
- "28332:28332"
|
2018-01-08 17:56:37 +01:00
|
|
|
expose:
|
|
|
|
- "43782" # RPC
|
|
|
|
- "39388" # P2P
|
2018-02-23 07:21:42 +01:00
|
|
|
volumes:
|
|
|
|
- "bitcoin_datadir:/data"
|
|
|
|
|
2018-03-17 11:26:30 +01:00
|
|
|
customer_lightningd:
|
2018-06-26 07:18:47 +02:00
|
|
|
image: nicolasdorier/clightning:v0.6-dev
|
2018-03-17 11:26:30 +01:00
|
|
|
environment:
|
2018-03-20 17:10:10 +01:00
|
|
|
EXPOSE_TCP: "true"
|
2018-03-17 11:26:30 +01:00
|
|
|
LIGHTNINGD_OPT: |
|
|
|
|
bitcoin-datadir=/etc/bitcoin
|
|
|
|
bitcoin-rpcconnect=bitcoind
|
|
|
|
network=regtest
|
2018-05-10 04:56:46 +02:00
|
|
|
bind-addr=0.0.0.0
|
|
|
|
announce-addr=customer_lightningd
|
2018-03-17 11:26:30 +01:00
|
|
|
log-level=debug
|
2018-04-26 08:30:52 +02:00
|
|
|
dev-broadcast-interval=1000
|
2018-03-17 11:26:30 +01:00
|
|
|
ports:
|
|
|
|
- "30992:9835" # api port
|
|
|
|
expose:
|
|
|
|
- "9735" # server port
|
|
|
|
- "9835" # api port
|
|
|
|
volumes:
|
|
|
|
- "bitcoin_datadir:/etc/bitcoin"
|
|
|
|
- "customer_lightningd_datadir:/root/.lightning"
|
|
|
|
links:
|
|
|
|
- bitcoind
|
|
|
|
|
2018-02-23 07:21:42 +01:00
|
|
|
lightning-charged:
|
2018-06-26 07:18:47 +02:00
|
|
|
image: shesek/lightning-charge:0.3.15
|
2018-02-23 07:21:42 +01:00
|
|
|
environment:
|
|
|
|
NETWORK: regtest
|
|
|
|
API_TOKEN: foiewnccewuify
|
|
|
|
BITCOIND_RPCCONNECT: bitcoind
|
|
|
|
volumes:
|
|
|
|
- "bitcoin_datadir:/etc/bitcoin"
|
2018-03-17 11:26:30 +01:00
|
|
|
- "lightning_charge_datadir:/data"
|
|
|
|
- "merchant_lightningd_datadir:/etc/lightning"
|
2018-02-23 07:21:42 +01:00
|
|
|
expose:
|
|
|
|
- "9112" # Charge
|
|
|
|
- "9735" # Lightning
|
|
|
|
ports:
|
|
|
|
- "54938:9112" # Charge
|
|
|
|
links:
|
|
|
|
- bitcoind
|
2018-03-17 11:26:30 +01:00
|
|
|
- merchant_lightningd
|
2018-02-23 07:21:42 +01:00
|
|
|
|
2018-03-17 11:26:30 +01:00
|
|
|
merchant_lightningd:
|
2018-06-26 07:18:47 +02:00
|
|
|
image: nicolasdorier/clightning:v0.6-dev
|
2018-03-17 07:45:44 +01:00
|
|
|
environment:
|
2018-03-20 17:10:10 +01:00
|
|
|
EXPOSE_TCP: "true"
|
2018-03-17 07:45:44 +01:00
|
|
|
LIGHTNINGD_OPT: |
|
|
|
|
bitcoin-datadir=/etc/bitcoin
|
|
|
|
bitcoin-rpcconnect=bitcoind
|
2018-05-10 04:56:46 +02:00
|
|
|
bind-addr=0.0.0.0
|
|
|
|
announce-addr=merchant_lightningd
|
2018-03-17 07:45:44 +01:00
|
|
|
network=regtest
|
|
|
|
log-level=debug
|
2018-04-13 07:33:11 +02:00
|
|
|
dev-broadcast-interval=1000
|
2018-02-23 07:21:42 +01:00
|
|
|
ports:
|
2018-03-17 11:26:30 +01:00
|
|
|
- "30993:9835" # api port
|
2018-02-23 07:21:42 +01:00
|
|
|
expose:
|
|
|
|
- "9735" # server port
|
2018-03-17 07:45:44 +01:00
|
|
|
- "9835" # api port
|
|
|
|
volumes:
|
|
|
|
- "bitcoin_datadir:/etc/bitcoin"
|
2018-03-17 11:26:30 +01:00
|
|
|
- "merchant_lightningd_datadir:/root/.lightning"
|
2018-03-17 07:45:44 +01:00
|
|
|
links:
|
|
|
|
- bitcoind
|
2018-01-08 17:56:37 +01:00
|
|
|
|
|
|
|
litecoind:
|
2018-03-21 15:51:28 +01:00
|
|
|
image: nicolasdorier/docker-litecoin:0.15.1
|
2018-01-08 17:56:37 +01:00
|
|
|
environment:
|
|
|
|
BITCOIN_EXTRA_ARGS: |
|
|
|
|
rpcuser=ceiwHEbqWI83
|
|
|
|
rpcpassword=DwubwWsoo3
|
|
|
|
regtest=1
|
|
|
|
server=1
|
|
|
|
rpcport=43782
|
|
|
|
port=39388
|
|
|
|
whitelist=0.0.0.0/0
|
|
|
|
ports:
|
|
|
|
- "43783:43782"
|
2017-09-28 09:35:29 +02:00
|
|
|
expose:
|
2017-12-13 07:49:19 +01:00
|
|
|
- "43782" # RPC
|
|
|
|
- "39388" # P2P
|
2017-10-02 17:41:03 +02:00
|
|
|
|
2017-09-28 09:35:29 +02:00
|
|
|
postgres:
|
|
|
|
image: postgres:9.6.5
|
2017-10-02 17:41:03 +02:00
|
|
|
ports:
|
2017-11-01 10:17:39 +01:00
|
|
|
- "39372:5432"
|
2017-12-13 07:49:19 +01:00
|
|
|
expose:
|
|
|
|
- "5432"
|
2018-02-23 07:21:42 +01:00
|
|
|
|
2018-05-11 23:59:24 +02:00
|
|
|
merchant_lnd:
|
2018-06-16 01:28:01 +02:00
|
|
|
image: btcpayserver/lnd:0.4.2.0
|
2018-04-29 09:52:33 +02:00
|
|
|
environment:
|
2018-07-10 12:33:54 +02:00
|
|
|
LND_CHAIN: "btc"
|
|
|
|
LND_ENVIRONMENT: "regtest"
|
|
|
|
LND_EXTRA_ARGS: |
|
|
|
|
restlisten=0.0.0.0:8080
|
|
|
|
bitcoin.node=bitcoind
|
|
|
|
bitcoind.rpchost=bitcoind:43782
|
|
|
|
bitcoind.zmqpath=tcp://bitcoind:28332
|
|
|
|
externalip=merchant_lnd:9735
|
|
|
|
no-macaroons=1
|
|
|
|
debuglevel=debug
|
|
|
|
noencryptwallet=1
|
2018-04-29 09:52:33 +02:00
|
|
|
ports:
|
|
|
|
- "53280:8080"
|
2018-05-11 23:59:24 +02:00
|
|
|
expose:
|
2018-05-12 07:19:26 +02:00
|
|
|
- "9735"
|
2018-05-11 23:59:24 +02:00
|
|
|
volumes:
|
2018-07-10 12:33:54 +02:00
|
|
|
- "merchant_lnd_datadir:/data"
|
|
|
|
- "bitcoin_datadir:/deps/.bitcoin"
|
2018-05-11 23:59:24 +02:00
|
|
|
links:
|
|
|
|
- bitcoind
|
|
|
|
|
|
|
|
customer_lnd:
|
2018-06-16 01:28:01 +02:00
|
|
|
image: btcpayserver/lnd:0.4.2.0
|
2018-05-11 23:59:24 +02:00
|
|
|
environment:
|
2018-07-10 12:33:54 +02:00
|
|
|
LND_CHAIN: "btc"
|
|
|
|
LND_ENVIRONMENT: "regtest"
|
|
|
|
LND_EXTRA_ARGS: |
|
|
|
|
restlisten=0.0.0.0:8080
|
|
|
|
bitcoin.node=bitcoind
|
|
|
|
bitcoind.rpchost=bitcoind:43782
|
|
|
|
bitcoind.zmqpath=tcp://bitcoind:28332
|
|
|
|
externalip=customer_lnd:10009
|
|
|
|
no-macaroons=1
|
|
|
|
debuglevel=debug
|
|
|
|
noencryptwallet=1
|
2018-05-11 23:59:24 +02:00
|
|
|
ports:
|
|
|
|
- "53281:8080"
|
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
- "10009"
|
2018-04-29 09:52:33 +02:00
|
|
|
volumes:
|
2018-05-11 23:59:24 +02:00
|
|
|
- "customer_lnd_datadir:/root/.lnd"
|
2018-07-10 12:33:54 +02:00
|
|
|
- "bitcoin_datadir:/deps/.bitcoin"
|
2018-04-29 09:52:33 +02:00
|
|
|
links:
|
|
|
|
- bitcoind
|
|
|
|
|
2018-02-23 07:21:42 +01:00
|
|
|
volumes:
|
|
|
|
bitcoin_datadir:
|
2018-03-17 11:26:30 +01:00
|
|
|
customer_lightningd_datadir:
|
|
|
|
merchant_lightningd_datadir:
|
|
|
|
lightning_charge_datadir:
|
2018-05-11 23:59:24 +02:00
|
|
|
customer_lnd_datadir:
|
|
|
|
merchant_lnd_datadir:
|