mirror of
https://github.com/Retropex/Bitcoin-store.git
synced 2025-05-12 19:00:42 +02:00
Compare commits
11 Commits
565b43032e
...
4e02759555
Author | SHA1 | Date | |
---|---|---|---|
4e02759555 | |||
1e4c89a467 | |||
bde70f3cf2 | |||
6095647a0f | |||
633e887b60 | |||
1fdfc17332 | |||
db473855eb | |||
9bc90a9380 | |||
710d58e406 | |||
2e008c61b3 | |||
8513d21134 |
0
btc-mempool/data/.gitkeep
Normal file
0
btc-mempool/data/.gitkeep
Normal file
88
btc-mempool/docker-compose.yml
Normal file
88
btc-mempool/docker-compose.yml
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app_proxy:
|
||||||
|
environment:
|
||||||
|
APP_HOST: $APP_MEMPOOL_IP
|
||||||
|
APP_PORT: $APP_MEMPOOL_PORT
|
||||||
|
PROXY_AUTH_ADD: "false"
|
||||||
|
web:
|
||||||
|
image: ghcr.io/retropex/mempoolfrontend:v3.2.0@sha256:34122bbc101ea9a327d17946b4442d79693fa677d9b21586802c59872652fe73
|
||||||
|
user: "1000:1000"
|
||||||
|
init: true
|
||||||
|
restart: on-failure
|
||||||
|
stop_grace_period: 1m
|
||||||
|
command: "./wait-for mariadb:3306 --timeout=720 -- nginx -g 'daemon off;'"
|
||||||
|
environment:
|
||||||
|
FRONTEND_HTTP_PORT: $APP_MEMPOOL_PORT
|
||||||
|
BACKEND_MAINNET_HTTP_HOST: $APP_MEMPOOL_API_IP
|
||||||
|
NGINX_PORT: $APP_MEMPOOL_PORT
|
||||||
|
NGINX_HOSTNAME: $APP_MEMPOOL_API_IP
|
||||||
|
LIGHTNING_DETECTED_PORT: $APP_MEMPOOL_LIGHTNING_NODE_PORT
|
||||||
|
AUDIT: "true"
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipv4_address: $APP_MEMPOOL_IP
|
||||||
|
api:
|
||||||
|
image: ghcr.io/retropex/mempoolbackend:v3.2.0@sha256:0e83482fb2e12bd73a4d15f526d398221c6dac0a657c64fab9428c0e0a724b39
|
||||||
|
user: "1000:1000"
|
||||||
|
init: true
|
||||||
|
restart: on-failure
|
||||||
|
stop_grace_period: 1m
|
||||||
|
command: "./wait-for-it.sh mariadb:3306 --timeout=720 --strict -- ./start.sh"
|
||||||
|
volumes:
|
||||||
|
- ${APP_DATA_DIR}/data:/backend/cache
|
||||||
|
- ${UMBREL_ROOT}/app-data/lightning/data/lnd:/lnd:ro
|
||||||
|
environment:
|
||||||
|
CORE_RPC_HOST: $APP_BITCOIN_NODE_IP
|
||||||
|
CORE_RPC_PORT: $APP_BITCOIN_RPC_PORT
|
||||||
|
CORE_RPC_USERNAME: $APP_BITCOIN_RPC_USER
|
||||||
|
CORE_RPC_PASSWORD: $APP_BITCOIN_RPC_PASS
|
||||||
|
ELECTRUM_HOST: $APP_ELECTRS_NODE_IP
|
||||||
|
ELECTRUM_PORT: $APP_ELECTRS_NODE_PORT
|
||||||
|
ELECTRUM_TLS: "false"
|
||||||
|
DATABASE_HOST: $APP_MEMPOOL_DB_IP
|
||||||
|
DATABASE_PORT: "3306"
|
||||||
|
DATABASE_DATABASE: "mempool"
|
||||||
|
DATABASE_USERNAME: "mempool"
|
||||||
|
DATABASE_PASSWORD: "mempool"
|
||||||
|
MEMPOOL_HTTP_PORT: "8999"
|
||||||
|
MEMPOOL_CACHE_DIR: "/backend/cache"
|
||||||
|
MEMPOOL_CLEAR_PROTECTION_MINUTES: "20"
|
||||||
|
MEMPOOL_INDEXING_BLOCKS_AMOUNT: "52560"
|
||||||
|
MEMPOOL_STDOUT_LOG_MIN_PRIORITY: "info"
|
||||||
|
LIGHTNING_ENABLED: "true"
|
||||||
|
LIGHTNING_BACKEND: "lnd"
|
||||||
|
LIGHTNING_STATS_REFRESH_INTERVAL: 3600
|
||||||
|
LIGHTNING_GRAPH_REFRESH_INTERVAL: 3600
|
||||||
|
LND_TLS_CERT_PATH: "/lnd/tls.cert"
|
||||||
|
LND_MACAROON_PATH: "/lnd/data/chain/bitcoin/$APP_BITCOIN_NETWORK/readonly.macaroon"
|
||||||
|
LND_REST_API_URL: "https://$APP_MEMPOOL_LIGHTNING_NODE_IP:$APP_MEMPOOL_LIGHTNING_NODE_REST_PORT"
|
||||||
|
LND_TIMEOUT: 120000
|
||||||
|
NODE_OPTIONS: "--max-old-space-size=2048"
|
||||||
|
MEMPOOL_BLOCKS_SUMMARIES_INDEXING: "true"
|
||||||
|
MEMPOOL_GOGGLES_INDEXING: "true"
|
||||||
|
MEMPOOL_AUDIT: "true"
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipv4_address: $APP_MEMPOOL_API_IP
|
||||||
|
mariadb:
|
||||||
|
image: mariadb:10.5.12@sha256:dfcba5641bdbfd7cbf5b07eeed707e6a3672f46823695a0d3aba2e49bbd9b1dd
|
||||||
|
user: "1000:1000"
|
||||||
|
restart: on-failure
|
||||||
|
stop_grace_period: 1m
|
||||||
|
volumes:
|
||||||
|
- ${APP_DATA_DIR}/mysql/data:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
MYSQL_DATABASE: "mempool"
|
||||||
|
MYSQL_USER: "mempool"
|
||||||
|
MYSQL_PASSWORD: "mempool"
|
||||||
|
MYSQL_ROOT_PASSWORD: "moneyprintergobrrr"
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipv4_address: $APP_MEMPOOL_DB_IP
|
||||||
|
widget-server:
|
||||||
|
image: getumbrel/umbrel-mempool-widget-server:v1.0.0@sha256:099846e613c7310deba842241477737babcdf78250fba6edf39d456712eeefc3
|
||||||
|
environment:
|
||||||
|
MEMPOOL_API_URL: "http://$APP_MEMPOOL_IP:$APP_MEMPOOL_PORT/api/v1/fees/recommended"
|
||||||
|
restart: on-failure
|
17
btc-mempool/exports.sh
Normal file
17
btc-mempool/exports.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
export APP_MEMPOOL_IP="10.21.21.26"
|
||||||
|
export APP_MEMPOOL_PORT="3006"
|
||||||
|
export APP_MEMPOOL_API_IP="10.21.21.27"
|
||||||
|
export APP_MEMPOOL_DB_IP="10.21.21.28"
|
||||||
|
|
||||||
|
hidden_service_file="${EXPORTS_TOR_DATA_DIR}/app-${EXPORTS_APP_ID}/hostname"
|
||||||
|
export APP_MEMPOOL_HIDDEN_SERVICE="$(cat "${hidden_service_file}" 2>/dev/null || echo "")"
|
||||||
|
|
||||||
|
# Check if Lightning Node app is installed and export required variables if so
|
||||||
|
# The Lightning Node app is optional and not listed in the `required` field of the umbrel-app.yml file, so we need to do this for compatibility with umbrelOS >=1.3 where only exports of required apps are sourced.
|
||||||
|
installed_apps=$("${UMBREL_ROOT}/scripts/app" ls-installed)
|
||||||
|
|
||||||
|
if echo "$installed_apps" | grep --quiet 'lightning'; then
|
||||||
|
export APP_MEMPOOL_LIGHTNING_NODE_PORT="9735"
|
||||||
|
export APP_MEMPOOL_LIGHTNING_NODE_IP="10.21.21.9"
|
||||||
|
export APP_MEMPOOL_LIGHTNING_NODE_REST_PORT="8080"
|
||||||
|
fi
|
0
btc-mempool/mysql/data/.gitkeep
Normal file
0
btc-mempool/mysql/data/.gitkeep
Normal file
57
btc-mempool/umbrel-app.yml
Normal file
57
btc-mempool/umbrel-app.yml
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
manifestVersion: 1
|
||||||
|
id: btc-mempool
|
||||||
|
category: bitcoin
|
||||||
|
name: mempool
|
||||||
|
version: "3.2.0"
|
||||||
|
tagline: Explorer
|
||||||
|
icon: https://raw.githubusercontent.com/Retropex/Bitcoin-store/refs/heads/master/icon/mempooldotguide.png
|
||||||
|
description: >-
|
||||||
|
Run your own mempool dot guide instance.
|
||||||
|
|
||||||
|
|
||||||
|
features:
|
||||||
|
|
||||||
|
|
||||||
|
- reworked health algorithm to show how much healthy transactions there is in a block.
|
||||||
|
|
||||||
|
- removed shitcoin explorer features.
|
||||||
|
releaseNotes: >-
|
||||||
|
developer: Mempool Space K.K.
|
||||||
|
website: https://mempool.guide
|
||||||
|
dependencies:
|
||||||
|
- electrs
|
||||||
|
repo: https://github.com/retropex/mempool
|
||||||
|
support: https://mempool.support
|
||||||
|
port: 3006
|
||||||
|
gallery:
|
||||||
|
- https://raw.githubusercontent.com/Retropex/Bitcoin-store/refs/heads/master/icon/1.jpg
|
||||||
|
- https://raw.githubusercontent.com/Retropex/Bitcoin-store/refs/heads/master/icon/2.jpg
|
||||||
|
- https://raw.githubusercontent.com/Retropex/Bitcoin-store/refs/heads/master/icon/3.jpg
|
||||||
|
- https://raw.githubusercontent.com/Retropex/Bitcoin-store/refs/heads/master/icon/4.jpg
|
||||||
|
path: ""
|
||||||
|
defaultUsername: ""
|
||||||
|
defaultPassword: ""
|
||||||
|
widgets:
|
||||||
|
- id: "stats"
|
||||||
|
type: "four-stats"
|
||||||
|
refresh: "5s"
|
||||||
|
endpoint: "widget-server:3000/widgets/fees"
|
||||||
|
link: ""
|
||||||
|
example:
|
||||||
|
type: "four-stats"
|
||||||
|
link: ""
|
||||||
|
items:
|
||||||
|
- title: "No priority"
|
||||||
|
text: "2"
|
||||||
|
subtext: "sat/vB"
|
||||||
|
- title: "Low priority"
|
||||||
|
text: "6"
|
||||||
|
subtext: "sat/vB"
|
||||||
|
- title: "Medium priority"
|
||||||
|
text: "18"
|
||||||
|
subtext: "sat/vB"
|
||||||
|
- title: "High priority"
|
||||||
|
text: "27"
|
||||||
|
subtext: "sat/vB"
|
||||||
|
submitter: Léo Haf
|
||||||
|
submission: https://github.com/Retropex/Bitcoin-store/pull/7
|
BIN
icon/1.jpg
Normal file
BIN
icon/1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 310 KiB |
BIN
icon/2.jpg
Normal file
BIN
icon/2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 316 KiB |
BIN
icon/3.jpg
Normal file
BIN
icon/3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 309 KiB |
BIN
icon/4.jpg
Normal file
BIN
icon/4.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 345 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.4 MiB |
Loading…
Reference in New Issue
Block a user