mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-24 09:28:11 -07:00
global: compressed vecs work again
This commit is contained in:
+1
-11
@@ -14,16 +14,6 @@ BTC_RPC_PORT=8332
|
||||
# BTC_RPC_USER=your_rpc_username
|
||||
# BTC_RPC_PASSWORD=your_rpc_password
|
||||
|
||||
# BRK configuration
|
||||
# Services to run: all, processor, or server
|
||||
BRK_SERVICES=all
|
||||
|
||||
# Computation mode: lazy (compute on demand) or eager (precompute and save)
|
||||
BRK_COMPUTATION=lazy
|
||||
|
||||
# Data format: raw (faster) or compressed (saves disk space)
|
||||
BRK_FORMAT=raw
|
||||
|
||||
# Enable price fetching from exchanges
|
||||
BRK_FETCH=true
|
||||
|
||||
@@ -39,4 +29,4 @@ BRK_MCP=true
|
||||
# Option 2: Use a bind mount to a local directory
|
||||
# Uncomment and set this to use a specific directory on your host
|
||||
# Also uncomment the corresponding line in docker-compose.yml
|
||||
# BRK_DATA_DIR=/path/to/brk/data
|
||||
# BRK_DATA_DIR=/path/to/brk/data
|
||||
|
||||
@@ -55,6 +55,3 @@ WORKDIR /home/brk
|
||||
|
||||
# Default entrypoint
|
||||
ENTRYPOINT ["brk"]
|
||||
|
||||
# Default command (can be overridden)
|
||||
CMD ["--services", "all"]
|
||||
+3
-9
@@ -21,7 +21,7 @@ This guide explains how to run BRK using Docker and Docker Compose.
|
||||
```bash
|
||||
docker compose -f docker/docker-compose.yml up -d
|
||||
```
|
||||
|
||||
|
||||
Or from the docker directory:
|
||||
```bash
|
||||
cd docker && docker compose up -d
|
||||
@@ -62,8 +62,6 @@ cd docker && docker compose up -d
|
||||
| `BTC_RPC_USER` | Bitcoin RPC username | - |
|
||||
| `BTC_RPC_PASSWORD` | Bitcoin RPC password | - |
|
||||
| `BRK_DATA_VOLUME` | Docker volume name for BRK data | `brk-data` |
|
||||
| `BRK_COMPUTATION` | Computation mode (`lazy`, `eager`) | `lazy` |
|
||||
| `BRK_FORMAT` | Data format (`raw`, `compressed`) | `raw` |
|
||||
| `BRK_FETCH` | Enable price fetching | `true` |
|
||||
| `BRK_MCP` | Enable MCP for AI/LLM | `true` |
|
||||
|
||||
@@ -81,8 +79,6 @@ BTC_RPC_USER=your_username
|
||||
BTC_RPC_PASSWORD=your_password
|
||||
|
||||
# BRK settings
|
||||
BRK_COMPUTATION=lazy
|
||||
BRK_FORMAT=raw
|
||||
BRK_FETCH=true
|
||||
BRK_MCP=true
|
||||
```
|
||||
@@ -96,7 +92,7 @@ BRK will automatically use the `.cookie` file from your Bitcoin Core directory.
|
||||
Set `BTC_RPC_USER` and `BTC_RPC_PASSWORD` in your `docker/.env` file.
|
||||
|
||||
#### Network Connectivity
|
||||
- **Same host**:
|
||||
- **Same host**:
|
||||
- If Bitcoin Core is running natively (not in Docker): Use `host.docker.internal` on macOS/Windows or `172.17.0.1` on Linux
|
||||
- If Bitcoin Core is also in Docker: Use the service name or container IP
|
||||
- **Remote host**: Use the actual IP address or hostname
|
||||
@@ -210,11 +206,9 @@ docker compose -f docker/docker-compose.yml logs -f
|
||||
#### Slow indexing
|
||||
- Ensure adequate disk space for indexed data - a minimum of 3GB/s is recommended
|
||||
- Monitor memory usage during initial indexing
|
||||
- Use `BRK_COMPUTATION=lazy` to reduce memory usage
|
||||
|
||||
#### Out of memory
|
||||
- Increase Docker's memory limit
|
||||
- Use `BRK_COMPUTATION=lazy` mode
|
||||
- Monitor container resource usage: `docker stats`
|
||||
|
||||
### Permission Issues
|
||||
@@ -260,4 +254,4 @@ docker run --rm -v brk_brk-data:/target -v \"$(pwd)\":/backup alpine tar xzf /ba
|
||||
|
||||
# Start container
|
||||
docker compose -f docker/docker-compose.yml up -d
|
||||
```
|
||||
```
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
container_name: brk
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 7070:3110 # Map host port 7070 to container port 3110
|
||||
- 7070:3110 # Map host port 7070 to container port 3110
|
||||
volumes:
|
||||
# Bitcoin Core data directory (read-only)
|
||||
# For access to raw block data
|
||||
@@ -25,20 +25,18 @@ services:
|
||||
# Bitcoin Core configuration
|
||||
- BITCOINDIR=/bitcoin
|
||||
- BLOCKSDIR=/bitcoin/blocks
|
||||
|
||||
|
||||
# RPC configuration (required for processor)
|
||||
- RPCCONNECT=${BTC_RPC_HOST:-localhost}
|
||||
- RPCPORT=${BTC_RPC_PORT:-8332}
|
||||
# - RPCCOOKIEFILE=/bitcoin/.cookie
|
||||
|
||||
|
||||
# Username/password authentication
|
||||
- RPCUSER=${BTC_RPC_USER}
|
||||
- RPCPASSWORD=${BTC_RPC_PASSWORD}
|
||||
|
||||
|
||||
# BRK configuration
|
||||
- BRKDIR=/home/brk/.brk
|
||||
- COMPUTATION=${BRK_COMPUTATION:-lazy}
|
||||
- FORMAT=${BRK_FORMAT:-raw}
|
||||
- FETCH=${BRK_FETCH:-true}
|
||||
- MCP=${BRK_MCP:-true}
|
||||
command:
|
||||
@@ -61,4 +59,4 @@ services:
|
||||
|
||||
volumes:
|
||||
brk-data:
|
||||
driver: local
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user