Skip to content

Commit

Permalink
adding ckpool to config-a
Browse files Browse the repository at this point in the history
  • Loading branch information
Shourya742 committed Sep 21, 2024
1 parent d0d7808 commit 287ba33
Show file tree
Hide file tree
Showing 2 changed files with 419 additions and 396 deletions.
53 changes: 38 additions & 15 deletions docker-compose-config-a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,30 +331,53 @@ services:
sv2-net:
ipv4_address: 10.5.0.23

sv1-pool:
container_name: sv1-pool
# sv1-pool:
# container_name: sv1-pool
# labels:
# logging: "config-a"
# build:
# context: .
# dockerfile: ./sv1-public-pool.dockerfile
# ports:
# - "3332:3332"
# - "3334:3334"
# volumes:
# - "./testnet-DB:/public-pool/DB"
# - "./custom-configs/sv1-pool/.env:/public-pool/.env:ro"
# - "./custom-configs/sv1-pool/rpc.js:/public-pool/node_modules/rpc-bitcoin/build/src/rpc.js" # to fix rpc-version field issue
# restart: unless-stopped
# environment:
# - NODE_ENV=production
# depends_on:
# - sv1-node-pool-proxy
# networks:
# sv2-net:
# ipv4_address: 10.5.0.8
# cap_add:
# - NET_ADMIN

sv1-ckpool:
container_name: sv1-ckpool
labels:
logging: "config-a"
logging: "config-c"
build:
context: .
dockerfile: ./sv1-public-pool.dockerfile
dockerfile: ./sv1-ckpool.dockerfile
ports:
- "3332:3332"
- "3334:3334"
- "3333:3333"
volumes:
- "./testnet-DB:/public-pool/DB"
- "./custom-configs/sv1-pool/.env:/public-pool/.env:ro"
- "./custom-configs/sv1-pool/rpc.js:/public-pool/node_modules/rpc-bitcoin/build/src/rpc.js" # to fix rpc-version field issue
- "./conf:/ckpool-solo/src/conf"
restart: unless-stopped
environment:
- NODE_ENV=production
depends_on:
- sv1-node-pool-proxy
networks:
sv2-net:
ipv4_address: 10.5.0.8
cap_add:
- NET_ADMIN
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-pool-miner-proxy:
image: sv1-custom-proxy-builder-image
Expand Down
Loading

0 comments on commit 287ba33

Please sign in to comment.