-
Notifications
You must be signed in to change notification settings - Fork 207
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 2.34 KB
/
docker-compose.yml
File metadata and controls
92 lines (87 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
zebra:
build:
context: ../..
dockerfile: docker/Dockerfile
container_name: zebra
environment:
- ZEBRA_NETWORK__NETWORK=${NETWORK:-Testnet}
- ZEBRA_RPC__LISTEN_ADDR=0.0.0.0:${RPC_PORT:-18232}
- ZEBRA_RPC__ENABLE_COOKIE_AUTH=false
- ZEBRA_SYNC__PARALLEL_CPU_THREADS=12
- ZEBRA_MINING__MINER_ADDRESS=${MINER_ADDRESS:?MINER_ADDRESS is required}
- ZEBRA_MINING__MINER_DATA=${MINER_DATA:-}
- ZEBRA_MINING__MINER_MEMO=${MINER_MEMO:-}
volumes:
- zebra-data:/home/zebra/.cache/zebra
ports:
- "${PEER_PORT:-18233}:${PEER_PORT:-18233}"
networks:
- mining
restart: unless-stopped
tty: true
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:8080/healthy || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s
redis:
image: redis:7-alpine
container_name: redis
networks:
- mining
restart: unless-stopped
s-nomp:
build:
context: https://github.com/ZcashFoundation/s-nomp.git
dockerfile: Dockerfile.arch
container_name: s-nomp
environment:
- ZEBRA_HOST=zebra
- ZEBRA_RPC_PORT=${RPC_PORT:-18232}
- REDIS_HOST=redis
- STRATUM_PORT=${STRATUM_PORT:-3333}
- NETWORK=${NETWORK:-Testnet}
- POOL_ADDRESS=${MINER_ADDRESS}
ports:
- "${STRATUM_PORT:-3333}:${STRATUM_PORT:-3333}"
- "8080:8080"
depends_on:
zebra:
condition: service_healthy
redis:
condition: service_started
networks:
- mining
restart: unless-stopped
volumes:
- ./s-nomp-entrypoint.sh:/app/s-nomp-entrypoint.sh:ro
entrypoint: /app/s-nomp-entrypoint.sh
nheqminer:
build:
context: https://github.com/ZcashFoundation/nheqminer.git
dockerfile: Dockerfile
container_name: nheqminer
environment:
- POOL_HOST=s-nomp
- POOL_PORT=${STRATUM_PORT:-3333}
- WORKER_ADDRESS=${MINER_ADDRESS}
- WORKER_NAME=${WORKER_NAME:-docker}
- CPU_THREADS=${CPU_THREADS:-1}
command: >
-l ${POOL_HOST:-s-nomp}:${STRATUM_PORT:-3333}
-u ${MINER_ADDRESS}.${WORKER_NAME:-docker}
-t ${CPU_THREADS:-1}
depends_on:
- s-nomp
networks:
- mining
restart: unless-stopped
profiles:
- miner
networks:
mining:
driver: bridge
volumes:
zebra-data: