btcpay-plugin/BTCPayServer.Plugins.IntegrationTests/docker-compose.yml
Claude a3869db496
rebrand(lethean): update branding, ports, and config for Lethean blockchain
- Coin: Zano → Lethean, ticker: ZAN/ZANO → LTHN
- Ports: 11211 → 36941 (mainnet RPC), 46941 (testnet RPC)
- Wallet: 11212 → 36944/46944
- Address prefix: iTHN
- URLs: zano.org → lethean.io
- Explorer links: explorer.lthn.io

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:24:13 +01:00

149 lines
4.1 KiB
YAML

services:
tests:
build:
context: ..
dockerfile: BTCPayServer.Plugins.IntegrationTests/Dockerfile
environment:
TESTS_BTCRPCCONNECTION: server=http://bitcoind:43782;ceiwHEbqWI83:DwubwWsoo3
TESTS_BTCNBXPLORERURL: http://nbxplorer:32838/
TESTS_POSTGRES: User ID=postgres;Include Error Detail=true;Host=postgres;Port=5432;Database=btcpayserver
TESTS_EXPLORER_POSTGRES: User ID=postgres;Include Error Detail=true;Host=postgres;Port=5432;Database=nbxplorer
TESTS_HOSTNAME: tests
TESTS_INCONTAINER: "true"
BTCPAY_LTHN_DAEMON_URI: http://127.0.0.1:46941
BTCPAY_LTHN_WALLET_DAEMON_URI: http://lethean_wallet:46944
BTCPAY_LTHN_WALLET_DAEMON_WALLETDIR: /wallet
depends_on:
- nbxplorer
- postgres
- lethean_wallet
extra_hosts:
- "tests:127.0.0.1"
volumes:
- ../coverage:/coverage
- lethean_wallet:/wallet
# The dev container is not used, it is just handy to run `docker-compose up dev` to start all services
dev:
image: alpine:3.21
container_name: dev
command: [ "/bin/sh", "-c", "trap : TERM INT; while :; do echo Ready to code and debug like a rockstar!!!; sleep 2073600; done & wait" ]
depends_on:
- nbxplorer
- postgres
- lethean_wallet
nbxplorer:
image: nicolasdorier/nbxplorer:2.5.25
container_name: nbxplorer
restart: unless-stopped
ports:
- "32838:32838"
expose:
- "32838"
environment:
NBXPLORER_NETWORK: regtest
NBXPLORER_CHAINS: "btc"
NBXPLORER_BTCRPCURL: http://bitcoind:43782/
NBXPLORER_BTCNODEENDPOINT: bitcoind:39388
NBXPLORER_BTCRPCUSER: ceiwHEbqWI83
NBXPLORER_BTCRPCPASSWORD: DwubwWsoo3
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_MINGAPSIZE: 5
NBXPLORER_MAXGAPSIZE: 10
NBXPLORER_VERBOSE: 1
NBXPLORER_POSTGRES: User ID=postgres;Include Error Detail=true;Host=postgres;Port=5432;Database=nbxplorer
NBXPLORER_EXPOSERPC: 1
NBXPLORER_NOAUTH: 1
depends_on:
- bitcoind
bitcoind:
restart: unless-stopped
image: btcpayserver/bitcoin:29.0
container_name: bitcoind
environment:
BITCOIN_NETWORK: regtest
BITCOIN_WALLETDIR: "/data/wallets"
BITCOIN_EXTRA_ARGS: |-
rpcuser=ceiwHEbqWI83
rpcpassword=DwubwWsoo3
rpcport=43782
rpcbind=0.0.0.0:43782
rpcallowip=0.0.0.0/0
port=39388
whitelist=0.0.0.0/0
zmqpubrawblock=tcp://0.0.0.0:28332
zmqpubrawtx=tcp://0.0.0.0:28333
deprecatedrpc=signrawtransaction
fallbackfee=0.0002
ports:
- "43782:43782"
- "39388:39388"
expose:
- "43782" # RPC
- "39388" # P2P
- "28332" # ZMQ
- "28333" # ZMQ
volumes:
- "bitcoin_datadir:/data"
letheand:
image: letheanio/letheand:latest
restart: unless-stopped
container_name: letheand
entrypoint: letheand
command: >
--rpc-bind-ip=0.0.0.0
--rpc-bind-port=46941
--log-level=2
--data-dir=/data
volumes:
- lethean_data:/data
ports:
- "46941:46941"
lethean_wallet:
image: letheanio/letheand:latest
restart: unless-stopped
container_name: lethean_wallet
entrypoint: /bin/bash
command:
- -c
- |
if [ ! -f /wallet/wallet.keys ]; then
echo "Generating new wallet..."
echo "exit" | simplewallet --generate-new-wallet=/wallet/wallet --password pass --daemon-address=127.0.0.1:46941
fi
simplewallet --wallet-file=/wallet/wallet --password pass --daemon-address=127.0.0.1:46941 --rpc-bind-ip=0.0.0.0 --rpc-bind-port=46944
ports:
- "46944:46944"
volumes:
- lethean_wallet:/wallet
depends_on:
- letheand
postgres:
image: postgres:17.4
container_name: postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "39372:5432"
expose:
- "5432"
volumes:
bitcoin_datadir:
lethean_data:
lethean_wallet:
networks:
default:
driver: bridge
custom:
driver: bridge
ipam:
config:
- subnet: 172.23.0.0/16