btcpayserver/BTCPayServer.Tests/docker-compose.yml

105 lines
2.8 KiB
YAML
Raw Normal View History

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
# Doing so will expose eclair API, NBXplorer, Bitcoind RPC and postgres port to the host so that tests can Run,
# 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
tests:
2017-09-28 11:49:24 +02:00
build:
context: ..
dockerfile: BTCPayServer.Tests/Dockerfile
2017-09-28 11:49:24 +02:00
environment:
TESTS_BTCRPCCONNECTION: server=http://bitcoind:43782;ceiwHEbqWI83:DwubwWsoo3
TESTS_LTCRPCCONNECTION: server=http://litecoind:43782;ceiwHEbqWI83:DwubwWsoo3
TESTS_BTCNBXPLORERURL: http://nbxplorer:32838/
TESTS_LTCNBXPLORERURL: http://nbxplorer:32838/
TESTS_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver
TESTS_PORT: 80
TESTS_HOSTNAME: tests
expose:
- "80"
2017-09-28 11:49:24 +02:00
links:
- nbxplorer
- postgres
extra_hosts:
- "tests:127.0.0.1"
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:
image: nicolasdorier/docker-bitcoin:0.15.0.1
environment:
BITCOIN_EXTRA_ARGS: |
regtest=1
connect=bitcoind:39388
links:
- nbxplorer
- postgres
2017-12-13 07:49:19 +01:00
nbxplorer:
image: nicolasdorier/nbxplorer:1.0.0.64
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
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
- litecoind
2017-12-02 17:56:26 +01:00
2017-09-28 09:35:29 +02:00
bitcoind:
container_name: btcpayserver_dev_bitcoind
2017-09-29 09:40:33 +02:00
image: nicolasdorier/docker-bitcoin:0.15.0.1
2017-09-28 09:35:29 +02:00
environment:
BITCOIN_EXTRA_ARGS: |
rpcuser=ceiwHEbqWI83
rpcpassword=DwubwWsoo3
regtest=1
2017-12-13 07:49:19 +01:00
server=1
rpcport=43782
port=39388
whitelist=0.0.0.0/0
ports:
- "43782:43782"
expose:
- "43782" # RPC
- "39388" # P2P
litecoind:
container_name: btcpayserver_dev_litecoind
image: nicolasdorier/docker-litecoin:0.14.2
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-09-28 09:35:29 +02:00
postgres:
image: postgres:9.6.5
ports:
2017-11-01 10:17:39 +01:00
- "39372:5432"
2017-12-13 07:49:19 +01:00
expose:
- "5432"