Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM rust:1.85-slim-bookworm AS builder

RUN apt-get update && apt-get install -y --no-install-recommends \
capnproto libcapnp-dev && \
capnproto libcapnp-dev curl && \
rm -rf /var/lib/apt/lists/*

WORKDIR /app
Expand Down
3 changes: 3 additions & 0 deletions docker/config/jdc-config.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ required_extensions = [
# 0x0002,
]

# Monitoring HTTP server address for exposing channel data (optional)
monitoring_address = "0.0.0.0:9091"

# List of upstreams (JDS) used as backup endpoints
# In case of shares refused by the JDS, the fallback system will propose the same job to the next upstream in this list
[[upstreams]]
Expand Down
3 changes: 3 additions & 0 deletions docker/config/pool-config.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ required_extensions = [
# 0x0002,
]

# Monitoring HTTP server address for exposing channel data (optional)
monitoring_address = "0.0.0.0:9090"

# Bitcoin Core IPC config
[template_provider_type.BitcoinCoreIpc]
network = "mainnet"
Expand Down
3 changes: 3 additions & 0 deletions docker/config/translator-proxy-config.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ required_extensions = [
# 0x0002, # Worker-Specific Hashrate Tracking
]

# Monitoring HTTP server address for exposing channel data (optional)
monitoring_address = "0.0.0.0:9092"

# Difficulty params
[downstream_difficulty_config]
# hashes/s of the weakest miner that will be connecting (e.g.: 10 Th/s = 10_000_000_000_000.0)
Expand Down
5 changes: 4 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
'
ports:
- "34254:34254"
- "127.0.0.1:9090:9090" # Monitoring HTTP API & Prometheus metrics (localhost only)
networks:
sv2_apps:
ipv4_address: 172.28.0.11
Expand Down Expand Up @@ -63,6 +64,7 @@ services:
'
ports:
- "34265:34265"
- "9091:9091" # Monitoring HTTP API & Prometheus metrics
networks:
sv2_apps:
ipv4_address: 172.28.0.13
Expand All @@ -80,14 +82,15 @@ services:
- ./config/translator-proxy-config.toml.template:/app/proxy-config.toml.template:ro
entrypoint: >
sh -c '
envsubst < /app/proxy-config.toml.template > /app/proxy-config.toml &&
envsubst < /app/proxy-config.toml.template > /app/translator-config.toml &&
exec /app/translator_sv2
'
networks:
sv2_apps:
ipv4_address: 172.28.0.14
ports:
- "34255:34255"
- "9092:9092" # Monitoring HTTP API & Prometheus metrics
restart: unless-stopped
profiles:
- pool_and_miner_apps_no_jd
Expand Down
Loading
Loading