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
24 changes: 24 additions & 0 deletions conf/ckpool.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"btcd": [
{
"url": "http://10.5.0.21:18332",
"auth": "username",
"pass": "password",
"notify": false
}
],
"btcsig": "/mined by docker-ckpool/",
"blockpoll": 100,
"nonce1length": 4,
"nonce2length": 8,
"update_interval": 30,
"version_mask": "1fffe000",
"serverurl": [
"10.5.0.40:3332"
],
"mindiff": 1,
"startdiff": 1,
"maxdiff": 1,
"zmqblock": "tcp://10.5.0.16:28332",
"logdir": "logs"
}
19 changes: 19 additions & 0 deletions conf/ckproxy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"proxy" : [
{
"url" : "10.5.0.19:3333",
"auth" : "tb1qa0sm0hxzj0x25rh8gw5xlzwlsfvvyz8u96w3p8.sv2-gitgab19",
"pass" : ""
}
],
"update_interval" : 30,
"serverurl" : ["0.0.0.0:3333"],
"mindiff": 0.000001,
"startdiff": 10000.01,
"maxdiff": 10000.01,
"zmqblock": "tcp://10.5.0.16:28332",
"logdir": "logs",
"spm": 10
}

# ./minerd -a sha256d -o stratum+tcp://127.0.0.1:3333 -q -D -P -u tb1qa0sm0hxzj0x25rh8gw5xlzwlsfvvyz8u96w3p8.sv2-gitgab19
48 changes: 44 additions & 4 deletions docker-compose-config-a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,46 @@ services:
cap_add:
- NET_ADMIN

sv1-ckpool:
container_name: sv1-ckpool
labels:
logging: "config-c"
build:
context: .
dockerfile: ./sv1-ckpool.dockerfile
# ports:
# - "3332:3332"
volumes:
- "./conf:/ckpool-solo/src/conf"
restart: unless-stopped
networks:
sv2-net:
ipv4_address: 10.5.0.40
healthcheck:
test: ["CMD-SHELL", "curl --silent --user username:password --data-binary '{\"jsonrpc\":\"1.0\",\"id\":\"healthcheck\",\"method\":\"getblockchaininfo\",\"params\":[]}' -H 'Content-Type: application/json' http://10.5.0.16:18332/ | jq -e '.result.initialblockdownload == false' || exit 1"]
interval: 30s
timeout: 10s
retries: 10
start_period: 10s

sv1-ckproxy:
container_name: sv1-ckproxy
labels:
logging: "config-c"
build:
context: .
dockerfile: ./sv1-ckproxy.dockerfile
ports:
- "3333:3333"
volumes:
- "./conf:/ckpool-solo/src/conf"
restart: unless-stopped
depends_on:
- sv1-pool
networks:
sv2-net:
ipv4_address: 10.5.0.41

sv1-pool-miner-proxy:
image: sv1-custom-proxy-builder-image
labels:
Expand All @@ -352,17 +392,17 @@ services:
"/usr/local/bin/monitor_and_apply_latency.sh 10.5.0.8 2 & exec ./target/release/sv1-custom-proxy",
]
ports:
- "3333:3333"
# - "3333:3333"
- "2345:2345"
environment:
- SERVER=10.5.0.8:3332
- CLIENT=0.0.0.0:3333
- SERVER=10.5.0.40:3332
- CLIENT=10.5.0.19:3333
- PROM_ADDRESS=10.5.0.19:2345
- PROXY_TYPE=pool-miner
container_name: sv1-pool-miner-proxy
depends_on:
- sv1-custom-proxy-builder
- sv1-pool
- sv1-ckpool
restart: unless-stopped
networks:
sv2-net:
Expand Down
Loading