Repository navigation
Equibit All in One Node, Miner, Spam system with docker compose
It's possible to make an All-In-One Node+Miner+Spammer system all in one go on Linux with docker-compose.
Note: This HOWTO assumes you have already created an Equibit address and have an Equibit data directory in /var/lib/equibit
This is my current docker-compose.yml:
version: "3"
services:
node:
image: macterra/eqb-testnet:v02.01
ports:
- 17331:17331
- 18331:18331
volumes:
- /var/lib/equibit:/data
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
spam:
image: darvs/eqb-spam:v02.01
depends_on:
- node
restart: on-failure
environment:
SPAM_URLS: "http://equibit:equibit@node:18331"
SPAM_FAKE: 0
SPAM_ROUNDS: 50
SPAM_INTERVAL: 1
SPAM_LOG: 1
miner:
image: darvs/eqbminer-ppa:v01.01
devices:
- /dev/dri:/dev/dri
ports:
- 40960:40960
volumes:
- /opt/amdgpu-pro:/opt/amdgpu-pro
- /etc/OpenCL:/etc/OpenCL
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
depends_on:
- node
command: sh -c "eqbminer -u equibit -p equibit --generate-to \"eqbtestnet1qhvhplj77zekm27stxdxzx8c23ku4pkz9s0pdsp\" --coinbase-sig \"AwesomeSauce2.01\" -D -o http://node:18331 --no-default-config -S auto --cpu-threads=0 --algo keccak --gpu-platform 0 --api-network --api-listen --api-port 40960"
Save that under docker-compose.yml in a new directory called "cthulhu-welcomes-you".
The miner part works for AMD GPUs, it will need to be edited for nvidia. At the very least you also need to insert your own address in the --generate-to parameter.
You need to be in that directory to issue the docker-compose commands as it will use that as a context.
| Sample Commands | Description |
|---|---|
| docker-compose up -d | Launch all services in backgroun |
| docker-compose ps | Check the status of your services |
| docker-compose exec node bash | Execute bash in the node docker |
| docker-compose logs --tail=100 spam | List last 100 lines of the spam log |
| docker-compose stop spam | Stop spam service |
You could use docker-compose start spam to relaunch the spam service after having stopped it, but if you modified the docker-compose.yml file to tweak it, just do docker-compose up -d again and it will re-launch only the services that are stopped.
That config still exposes your node on port 17331 and RPC port 18331 so you can still access it from outside docker-compose or docker.