-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.subtensor.yaml
71 lines (67 loc) · 1.85 KB
/
docker-compose.subtensor.yaml
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
volumes:
mainnet-lite-volume:
testnet-lite-volume:
networks:
subtensor:
name: subtensor
services:
common: &common
image: ghcr.io/opentensor/subtensor:latest
build:
context: .
dockerfile: Dockerfile
target: subtensor
cpu_count: 4
mem_limit: 40000000000
memswap_limit: 80000000000
networks:
- subtensor
ports:
# - "9944:9944"
- "30333:30333"
# - "9933:9933"
expose:
- "9944"
- "30333"
- "9933"
environment:
- CARGO_HOME=/var/www/node-subtensor/.cargo
logging:
options:
max-size: "100m"
mainnet-lite:
<<: *common
container_name: subtensor-mainnet-lite
volumes:
- mainnet-lite-volume:/tmp/blockchain
command:
- /bin/bash
- -c
- |
node-subtensor \
--base-path /tmp/blockchain \
--chain raw_spec_finney.json \
--rpc-external --rpc-cors all \
--no-mdns \
--in-peers 500 --out-peers 500 \
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
--sync warp
testnet-lite:
<<: *common
container_name: subtensor-testnet-lite
volumes:
- testnet-lite-volume:/tmp/blockchain
command:
- /bin/bash
- -c
- |
node-subtensor \
--base-path /tmp/blockchain \
--chain raw_spec_testfinney.json \
--rpc-external --rpc-cors all \
--no-mdns \
--in-peers 500 --out-peers 500 \
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
--sync warp
--reserved-nodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
--reserved-only