-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdocker-compose.miner.yml
More file actions
33 lines (32 loc) · 993 Bytes
/
docker-compose.miner.yml
File metadata and controls
33 lines (32 loc) · 993 Bytes
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
services:
miner:
image: entrius/allways:latest
container_name: aw-miner
restart: unless-stopped
entrypoint: /app/scripts/miner-entrypoint.sh
env_file:
- .env
ports:
- "${PORT}:${PORT}"
volumes:
- ${WALLET_PATH}:/root/.bittensor/wallets:ro
labels:
- "com.centurylinklabs.watchtower.enable=true"
# btc-node is not needed when BTC_MODE=lightweight (bit library + Blockstream API)
btc-node:
image: bitcoin/bitcoin:28
container_name: aw-btc
restart: unless-stopped
mem_limit: "512m" # set to "4g" for initial BTC sync, then revert
# mem_limit: "4g" # initial BTC sync — revert to 512m after sync completes
command:
- bitcoind
- -server
- -prune=5000 # keep ~5g worth of data on disk
- -rpcuser=${BTC_RPC_USER}
- -rpcpassword=${BTC_RPC_PASS}
- -rpcallowip=0.0.0.0/0
- -rpcbind=0.0.0.0
- -rpcport=8332
volumes:
- ./data/btc:/home/bitcoin/.bitcoin