Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
122 changes: 122 additions & 0 deletions docker-liquid/docker-compose-mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
version: "3.7"

services:
# MariaDB for mempool backend
db:
container_name: liquid-mainnet-mempool-db
image: mariadb:10.5.21
restart: on-failure
stop_grace_period: 1m
environment:
MYSQL_DATABASE: "mempool"
MYSQL_USER: "mempool"
MYSQL_PASSWORD: "mempool"
MYSQL_ROOT_PASSWORD: "admin"
volumes:
- ./mysql/mainnet-data:/var/lib/mysql
network_mode: host

# Mempool backend API
api:
container_name: liquid-mainnet-mempool-api
image: blockcore/mempool-backend:latest
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
depends_on:
- db
environment:
# Network configuration
MEMPOOL_NETWORK: "liquid"
MEMPOOL_BACKEND: "esplora"
MEMPOOL_ENABLED: "true"

# Angor configuration
ANGOR_ENABLED: "true"

# Esplora configuration - connecting to the local electrs
ESPLORA_REST_API_URL: "http://127.0.0.1:3000"
ESPLORA_REQUEST_TIMEOUT: "10000"
ESPLORA_FALLBACK_TIMEOUT: "10000"

# Elements Core RPC configuration connecting to the local elements rpc
CORE_RPC_HOST: "127.0.0.1"
CORE_RPC_PORT: "7041"
CORE_RPC_USERNAME: "ritankar" #according to the angor4tbvm
CORE_RPC_PASSWORD: "ritankar-liquid" #according to the angor4tbvm
CORE_RPC_TIMEOUT: "60000"

# Database configuration
DATABASE_ENABLED: "true"
DATABASE_HOST: "127.0.0.1"
DATABASE_PORT: "3306"
DATABASE_DATABASE: "mempool"
DATABASE_USERNAME: "mempool"
DATABASE_PASSWORD: "mempool"

# Statistics and logging
STATISTICS_ENABLED: "true"
MEMPOOL_STDOUT_LOG_MIN_PRIORITY: "debug"
MEMPOOL_INDEXING_BLOCKS_AMOUNT: "8640"
MEMPOOL_BLOCKS_SUMMARIES_INDEXING: "true"

# Mempool specific settings
MEMPOOL_CACHE_ENABLED: "true"
MEMPOOL_CACHE_DIR: "/backend/cache"
MEMPOOL_CLEAR_PROTECTION_MINUTES: "20"
MEMPOOL_RECOMMENDED_FEE_PERCENTILE: "50"
MEMPOOL_BLOCK_WEIGHT_UNITS: "4000000"
MEMPOOL_INITIAL_BLOCKS_AMOUNT: "8"
MEMPOOL_MEMPOOL_BLOCKS_AMOUNT: "8"
volumes:
- ./data-mainnet:/backend/cache
network_mode: host
command: "./wait-for-it.sh 127.0.0.1:3306 --timeout=720 --strict -- ./start.sh"

# Mempool frontend
web:
container_name: liquid-mainnet-mempool-web
image: mempool-frontend
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
depends_on:
- api
- db
environment:
# Frontend configuration
FRONTEND_HTTP_PORT: "8081"
BACKEND_MAINNET_HTTP_HOST: "127.0.0.1"
BACKEND_MAINNET_HTTP_PORT: "8999"

# Network configuration
MAINNET_ENABLED: "false"
LIQUID_ENABLED: "true"
LIQUID_TESTNET_ENABLED: "false"
ROOT_NETWORK: "liquid"
BASE_MODULE: "liquid"

# URLs
LIQUID_WEBSITE_URL: "http://localhost:8081"
MEMPOOL_WEBSITE_URL: "https://mempool.space"

# Angor configuration
ANGOR_ENABLED: "true"

# Features
LIGHTNING: "false"
MINING_DASHBOARD: "false"
AUDIT: "false"
ACCELERATOR: "false"
ACCELERATOR_BUTTON: "false"
PUBLIC_ACCELERATIONS: "false"
HISTORICAL_PRICE: "true"
ADDITIONAL_CURRENCIES: "false"

# Display settings
ITEMS_PER_PAGE: "10"
KEEP_BLOCKS_AMOUNT: "8"
MEMPOOL_BLOCKS_AMOUNT: "8"
BLOCK_WEIGHT_UNITS: "4000000"
network_mode: host
command: "./wait-for 127.0.0.1:3306 --timeout=720 -- nginx -g 'daemon off;'"
122 changes: 122 additions & 0 deletions docker-liquid/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
version: "3.7"

services:
# MariaDB for mempool backend
db:
container_name: liquid-mempool-db
image: mariadb:10.5.21
restart: on-failure
stop_grace_period: 1m
environment:
MYSQL_DATABASE: "mempool"
MYSQL_USER: "mempool"
MYSQL_PASSWORD: "mempool"
MYSQL_ROOT_PASSWORD: "admin"
volumes:
- ./mysql/data:/var/lib/mysql
network_mode: host

# Mempool backend API
api:
container_name: liquid-mempool-api
image: blockcore/mempool-backend:latest
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
depends_on:
- db
environment:
# Network configuration
MEMPOOL_NETWORK: "liquidtestnet"
MEMPOOL_BACKEND: "esplora"
MEMPOOL_ENABLED: "true"

# Angor configuration
ANGOR_ENABLED: "true"

# Esplora configuration
ESPLORA_REST_API_URL: "http://127.0.0.1:3001"
ESPLORA_REQUEST_TIMEOUT: "10000"
ESPLORA_FALLBACK_TIMEOUT: "10000"

# Elements Core RPC configuration
CORE_RPC_HOST: "127.0.0.1"
CORE_RPC_PORT: "18891"
CORE_RPC_USERNAME: "user"
CORE_RPC_PASSWORD: "password"
CORE_RPC_TIMEOUT: "60000"

# Database configuration
DATABASE_ENABLED: "true"
DATABASE_HOST: "127.0.0.1"
DATABASE_PORT: "3306"
DATABASE_DATABASE: "mempool"
DATABASE_USERNAME: "mempool"
DATABASE_PASSWORD: "mempool"

# Statistics and logging
STATISTICS_ENABLED: "true"
MEMPOOL_STDOUT_LOG_MIN_PRIORITY: "debug"
MEMPOOL_INDEXING_BLOCKS_AMOUNT: "8640"
MEMPOOL_BLOCKS_SUMMARIES_INDEXING: "true"

# Mempool specific settings
MEMPOOL_CACHE_ENABLED: "true"
MEMPOOL_CACHE_DIR: "/backend/cache"
MEMPOOL_CLEAR_PROTECTION_MINUTES: "20"
MEMPOOL_RECOMMENDED_FEE_PERCENTILE: "50"
MEMPOOL_BLOCK_WEIGHT_UNITS: "4000000"
MEMPOOL_INITIAL_BLOCKS_AMOUNT: "8"
MEMPOOL_MEMPOOL_BLOCKS_AMOUNT: "8"
volumes:
- ./data:/backend/cache
network_mode: host
command: "./wait-for-it.sh 127.0.0.1:3306 --timeout=720 --strict -- ./start.sh"

# Mempool frontend
web:
container_name: liquid-mempool-web
image: mempool-frontend
user: "1000:1000"
restart: on-failure
stop_grace_period: 1m
depends_on:
- api
- db
environment:
# Frontend configuration
FRONTEND_HTTP_PORT: "8080"
BACKEND_MAINNET_HTTP_HOST: "127.0.0.1"
BACKEND_MAINNET_HTTP_PORT: "8999"

# Network configuration
MAINNET_ENABLED: "false"
LIQUID_ENABLED: "true"
LIQUID_TESTNET_ENABLED: "true"
ROOT_NETWORK: "liquidtestnet"
BASE_MODULE: "liquid"

# URLs
LIQUID_WEBSITE_URL: "http://localhost:8080"
MEMPOOL_WEBSITE_URL: "https://mempool.space"

# Angor configuration
ANGOR_ENABLED: "true"

# Features
LIGHTNING: "false"
MINING_DASHBOARD: "false"
AUDIT: "false"
ACCELERATOR: "false"
ACCELERATOR_BUTTON: "false"
PUBLIC_ACCELERATIONS: "false"
HISTORICAL_PRICE: "true"
ADDITIONAL_CURRENCIES: "false"

# Display settings
ITEMS_PER_PAGE: "10"
KEEP_BLOCKS_AMOUNT: "8"
MEMPOOL_BLOCKS_AMOUNT: "8"
BLOCK_WEIGHT_UNITS: "4000000"
network_mode: host
command: "./wait-for 127.0.0.1:3306 --timeout=720 -- nginx -g 'daemon off;'"
Empty file added docker-liquid/mysql/.gitignore
Empty file.
28 changes: 28 additions & 0 deletions frontend/mempool-frontend-config.liquid-mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"TESTNET_ENABLED": true,
"TESTNET4_ENABLED": false,
"SIGNET_ENABLED": false,
"LIQUID_ENABLED": true,
"LIQUID_TESTNET_ENABLED": true,
"MAINNET_ENABLED": true,
"ITEMS_PER_PAGE": 10,
"KEEP_BLOCKS_AMOUNT": 8,
"NGINX_PROTOCOL": "http",
"NGINX_HOSTNAME": "192.168.0.144",
"NGINX_PORT": "8081",
"BLOCK_WEIGHT_UNITS": 4000000,
"MEMPOOL_BLOCKS_AMOUNT": 8,
"BASE_MODULE": "liquid",
"ROOT_NETWORK": "liquid",
"MEMPOOL_WEBSITE_URL": "https://mempool.space",
"LIQUID_WEBSITE_URL": "http://localhost:8081",
"MINING_DASHBOARD": false,
"AUDIT": false,
"LIGHTNING": false,
"HISTORICAL_PRICE": true,
"ADDITIONAL_CURRENCIES": false,
"ACCELERATOR": false,
"ACCELERATOR_BUTTON": false,
"PUBLIC_ACCELERATIONS": false,
"ANGOR_ENABLED": true
}