@@ -0,0 +1,3 @@
+CPUS=4
+RPC_CREDENTIALS=user:password # solo模式需要填,rpc的用户密码
+ADDRESS=alpha1qw9mkt6qmavuepmweldffq69v2v3lzee3jpnx5x # 矿池模式需要填
@@ -12,3 +12,6 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
+.env
+
+address.txt
@@ -0,0 +1 @@
+alpha1qw9mkt6qmavuepmweldffq69v2v3lzee3jpnx5x
@@ -0,0 +1,21 @@
+services:
+ alpha-miner:
+ image: ghcr.io/unicitynetwork/alpha-miner:latest
+ container_name: alpha-miner
+ deploy:
+ resources:
+ limits:
+ cpus: ${CPUS}
+ extra_hosts:
+ - "host.docker.internal:host-gateway"
+ volumes:
+ - ./addrs.txt:/home/miner/addrs.txt
+ command:
+ - "-o"
+ - "host.docker.internal:8589"
+ - "-O"
+ - ${RPC_CREDENTIALS}
+ - "--largepages"
+ - "--no-affinity"
+ restart: "no"
+ alpha-pool-miner:
+ container_name: alpha-pool-miner
+ - "stratum+tcp://unicity-pool.com:3054"
+ - "-u"
+ - ${ADDRESS}
+ - "-t"
+ - ${CPUS}