Skip to content

Commit

Permalink
add pool-node proxy and pool-miner proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shourya742 committed Sep 23, 2024
1 parent 287ba33 commit 1b8be9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions conf/ckpool.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"btcd": [
{
"url": "http://10.5.0.16:18332",
"url": "http://10.5.0.21:18332",
"auth": "username",
"pass": "password",
"notify": false
Expand All @@ -14,7 +14,7 @@
"update_interval": 30,
"version_mask": "1fffe000",
"serverurl": [
"0.0.0.0:3332"
"10.5.0.40:3332"
],
"mindiff": 1,
"startdiff": 42,
Expand Down
7 changes: 3 additions & 4 deletions docker-compose-config-a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ services:
dockerfile: ./sv1-ckpool.dockerfile
ports:
- "3332:3332"
- "3333:3333"
volumes:
- "./conf:/ckpool-solo/src/conf"
restart: unless-stopped
Expand Down Expand Up @@ -393,14 +392,14 @@ services:
- "3333:3333"
- "2345:2345"
environment:
- SERVER=10.5.0.8:3332
- SERVER=10.5.0.40:3332
- CLIENT=0.0.0.0: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 All @@ -418,7 +417,7 @@ services:
- "4567:4567"
environment:
- SERVER=http://10.5.0.16:18332
- CLIENT=0.0.0.0:48330
- CLIENT=10.5.0.21:18332
- PROM_ADDRESS=10.5.0.21:4567
- PROXY_TYPE=node-pool
container_name: sv1-node-pool-proxy
Expand Down
3 changes: 1 addition & 2 deletions docker-compose-config-c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ services:
dockerfile: ./sv1-ckpool.dockerfile
ports:
- "3332:3332"
- "3333:3333"
volumes:
- "./conf:/ckpool-solo/src/conf"
restart: unless-stopped
Expand Down Expand Up @@ -341,7 +340,7 @@ services:
- "4567:4567"
environment:
- SERVER=http://10.5.0.16:18332
- CLIENT=0.0.0.0:48330
- CLIENT=10.5.0.21:18332
- PROM_ADDRESS=10.5.0.21:4567
- PROXY_TYPE=node-pool
container_name: sv1-node-pool-proxy
Expand Down
4 changes: 1 addition & 3 deletions sv1-ckpool.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ FROM ubuntu:latest
ARG REPO=ckpool-solo
ARG BRANCH=solobtc
ARG REPO_URL=https://bitbucket.org/ckolivas/${REPO}.git
# ARG REPO_URL=https://github.com/golden-guy/${REPO}.git


RUN apt-get update && apt-get install -y autoconf automake libtool build-essential git yasm libzmq3-dev libcap2-bin pkgconf

Expand All @@ -71,6 +71,4 @@ RUN ./autogen.sh && ./configure && make

WORKDIR ./src

EXPOSE 3333

CMD ["./ckpool","-B","-k", "-c", "./conf/ckpool.conf"]

0 comments on commit 1b8be9f

Please sign in to comment.