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
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:16-alpine

RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app

WORKDIR /home/node/app
COPY package*.json ./

RUN npm install
USER node
COPY --chown=node:node . .

EXPOSE 16110
EXPOSE 16112

# Modify the parameters here to reflect your Node, Wallet, Port, and Listening Address.
CMD [ "node", "index.js", "--node", "79.120.76.62:16110","--port","16112", "--address", "kaspa:qz34dfrhnmljnp4ymm4p4uukphjg3ty3auv0jktugv4wx4w8jwdh7zwjka8x8", "--listen-address", "0.0.0.0" ]
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,29 @@
* Supports multiple networks(Testnet, mainnet...).

## Usage
Install NodeJS 16 from [here](https://nodejs.org/) and run KStratum by ``npx kstratum@latest <arguments>`` on command line.
### npx
Install NodeJS 16 from [here](https://nodejs.org/) and run KStratum:
```
npx kstratum@latest <arguments>
```

### Docker
Modify the command arguments in the included Dockerfile to reflect your Node, Wallet, Port, and Listening Address.

Build the container:
```
docker build -t kstratum .
```

Run the container locally:
```
docker run -p 16112:16112 -t kstratum
```

### Arguments
* ``--node <ip/domain:port>``: Switchs to another node. Default: `79.120.76.62:16110`
* ``--address <address>``: Sets mining address.
* ``--port <port>``: Sets Stratum listening port. Default: `16112`
* ``--listen-address <ip/domain>``: Sets Stratum listening address. Default: `127.0.0.1`

#### Sponsored by [lolMiner](https://github.com/Lolliedieb/lolMiner-releases)
#### Sponsored by [lolMiner](https://github.com/Lolliedieb/lolMiner-releases)