maxmind il y a 4 mois
Parent
commit
fff11e10d9
5 fichiers modifiés avec 49 ajouts et 0 suppressions
  1. 3 0
      .env.sample
  2. 3 0
      .gitignore
  3. 1 0
      addrs.sample.txt
  4. 21 0
      docker-compose.solo.yml
  5. 21 0
      docker-compose.yml

+ 3 - 0
.env.sample

@@ -0,0 +1,3 @@
+CPUS=4
+RPC_CREDENTIALS=user:password # solo模式需要填,rpc的用户密码
+ADDRESS=alpha1qw9mkt6qmavuepmweldffq69v2v3lzee3jpnx5x # 矿池模式需要填

+ 3 - 0
.gitignore

@@ -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

+ 1 - 0
addrs.sample.txt

@@ -0,0 +1 @@
+alpha1qw9mkt6qmavuepmweldffq69v2v3lzee3jpnx5x

+ 21 - 0
docker-compose.solo.yml

@@ -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"
+    

+ 21 - 0
docker-compose.yml

@@ -0,0 +1,21 @@
+services:
+  alpha-pool-miner:
+    image: ghcr.io/unicitynetwork/alpha-miner:latest
+    container_name: alpha-pool-miner
+    deploy:
+      resources:
+        limits:
+          cpus: ${CPUS}
+    extra_hosts:
+      - "host.docker.internal:host-gateway"
+    command:
+      - "-o"
+      - "stratum+tcp://unicity-pool.com:3054"
+      - "-u"
+      - ${ADDRESS}
+      - "-t"
+      - ${CPUS}
+      - "--largepages"
+      - "--no-affinity"
+    restart: "no"
+