mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #6981 from alvasw/add_regtest_mempool_setup
Add Mempool to Regtest Setup
This commit is contained in:
commit
dfb50397f0
1
.gitignore
vendored
1
.gitignore
vendored
@ -34,3 +34,4 @@ deploy
|
||||
.localnet
|
||||
/apitest/src/main/resources/dao-setup*
|
||||
/.run
|
||||
/regtest/data_dirs
|
||||
|
68
regtest/docker-compose.yml
Normal file
68
regtest/docker-compose.yml
Normal file
@ -0,0 +1,68 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
electrumx:
|
||||
image: bisq/electrumx
|
||||
build: ./electrumx
|
||||
volumes:
|
||||
- ./data_dirs/electrumx:/root/electrumx/db_directory
|
||||
environment:
|
||||
- ALLOW_ROOT=yes
|
||||
- SERVICES=tcp://:50001,rpc://
|
||||
- COIN=Bitcoin
|
||||
- NET=regtest
|
||||
- DAEMON_URL=http://bisqdao:bsq@127.0.0.1:18443
|
||||
- DB_DIRECTORY=/root/electrumx/db_directory
|
||||
entrypoint: ./electrumx_server
|
||||
network_mode: "host"
|
||||
|
||||
mempool-web:
|
||||
environment:
|
||||
FRONTEND_HTTP_PORT: "8080"
|
||||
BACKEND_MAINNET_HTTP_HOST: "127.0.0.1"
|
||||
image: mempool/frontend:latest
|
||||
user: "1000:1000"
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
command: "./wait-for 127.0.0.1:3306 --timeout=720 -- nginx -g 'daemon off;'"
|
||||
network_mode: "host"
|
||||
|
||||
mempool-api:
|
||||
depends_on:
|
||||
- electrumx
|
||||
environment:
|
||||
MEMPOOL_BACKEND: "electrum"
|
||||
CORE_RPC_HOST: "127.0.0.1"
|
||||
CORE_RPC_PORT: "18443"
|
||||
CORE_RPC_USERNAME: "bisqdao"
|
||||
CORE_RPC_PASSWORD: "bsq"
|
||||
ELECTRUM_HOST: "127.0.0.1"
|
||||
ELECTRUM_PORT: "50001"
|
||||
ELECTRUM_TLS_ENABLED: "false"
|
||||
DATABASE_ENABLED: "true"
|
||||
DATABASE_HOST: "127.0.0.1"
|
||||
DATABASE_DATABASE: "mempool"
|
||||
DATABASE_USERNAME: "mempool"
|
||||
DATABASE_PASSWORD: "mempool"
|
||||
STATISTICS_ENABLED: "true"
|
||||
image: mempool/backend:latest
|
||||
user: "1000:1000"
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
command: "./wait-for-it.sh 127.0.0.1:3306 --timeout=720 --strict -- ./start.sh"
|
||||
volumes:
|
||||
- ./data_dirs/mempool-api:/backend/cache
|
||||
network_mode: "host"
|
||||
|
||||
mempool-db:
|
||||
environment:
|
||||
MYSQL_DATABASE: "mempool"
|
||||
MYSQL_USER: "mempool"
|
||||
MYSQL_PASSWORD: "mempool"
|
||||
MYSQL_ROOT_PASSWORD: "admin"
|
||||
image: mariadb:10.5.8
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
volumes:
|
||||
- ./data_dirs/mempool-mysql:/var/lib/mysql
|
||||
network_mode: "host"
|
10
regtest/electrumx/Dockerfile
Normal file
10
regtest/electrumx/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM python:3
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
RUN git clone https://github.com/spesmilo/electrumx.git && \
|
||||
cd electrumx && \
|
||||
pip3 install . && \
|
||||
mkdir db_directory
|
||||
|
||||
WORKDIR /root/electrumx
|
Loading…
Reference in New Issue
Block a user