Skip to content

Commit

Permalink
Added a Dockerfile and instructions to build the container.
Browse files Browse the repository at this point in the history
  • Loading branch information
newtondev committed Feb 19, 2018
1 parent 71d36c2 commit 5151621
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:8.6

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY package.json /usr/src/app/

RUN npm install

COPY server.js /usr/src/app/

CMD [ "node", "server" ]
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,17 @@ You can run it in a screen instance, or you can install pm2 to run your instance

## Linux, Mac OSX

* It should just work, if not then please let me know.
* It should just work, if not then please let me know.

---

## Docker container


To build the docker image: `docker build -t no-dev-fee-stratum-proxy .`

To run the docker image: `docker run -d --name my-stratum-proxy -e "WALLET=0xE151c757784Ee1d9Ea4970BC51542384E5106395.DROID" -e "REMOTE_HOST=eu1.ethermine.org" -e "REMOTE_PORT=4444" -e "REMOTE_PASSWORD=x" -p 4444:4444 no-dev-fee-stratum-proxy`

In the example above you can point your miner to the IP address running the proxy on port 4444.

Please remember to change to your wallet address and not mine to my wallet, thanks!
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const wallet = process.env.WALLET
const remotehost = process.env.REMOTE_HOST
const remoteport = process.env.REMOTE_PORT
const password = process.env.REMOTE_PASSWORD
const localhost = process.env.LOCAL_HOST
const localport = process.env.LOCAL_PORT
const localhost = process.env.LOCAL_HOST || '0.0.0.0'
const localport = process.env.LOCAL_PORT || 4444

if (!localhost || !localport || !remotehost ||
!remoteport || !wallet || !password) {
Expand Down

0 comments on commit 5151621

Please sign in to comment.