forked from opentensor/subtensor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (85 loc) · 2.44 KB
/
docker-compose.yml
File metadata and controls
91 lines (85 loc) · 2.44 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
version: "3.8"
volumes:
mainnet-lite-volume:
mainnet-archive-volume:
testnet-lite-volume:
testnet-archive-volume:
services:
common: &common
image: ghcr.io/opentensor/subtensor:latest
## Uncomment to build from scratch:
# build:
# context: .
# dockerfile: Dockerfile
# target: subtensor
cpu_count: 4
mem_limit: 40000000000
memswap_limit: 80000000000
ports:
- "9944:9944"
- "30333:30333"
- "9933:9933"
expose:
- "9944"
- "30333"
- "9933"
environment:
- CARGO_HOME=/var/www/node-subtensor/.cargo
mainnet-lite:
<<: *common
container_name: subtensor-mainnet-lite
volumes:
- mainnet-lite-volume:/data
command:
- --base-path=/data
- --chain=./chainspecs/raw_spec_finney.json
- --rpc-external
- --rpc-cors=all
- --no-mdns
- --bootnodes=/dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC
- --sync=warp
- --database paritydb
- --db-cache 4096
- --trie-cache-size 2048
mainnet-archive:
<<: *common
container_name: subtensor-mainnet-archive
volumes:
- mainnet-archive-volume:/data
command:
- --base-path=/data
- --chain=./chainspecs/raw_spec_finney.json
- --rpc-external
- --rpc-cors=all
- --no-mdns
- --bootnodes=/dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC
- --pruning=archive
testnet-lite:
<<: *common
container_name: subtensor-testnet-lite
volumes:
- testnet-lite-volume:/data
command:
- --base-path=/data
- --chain=./chainspecs/raw_spec_testfinney.json
- --rpc-external
- --rpc-cors=all
- --no-mdns
- --bootnodes=/dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr
- --sync=warp
- --database paritydb
- --db-cache 4096
- --trie-cache-size 2048
testnet-archive:
<<: *common
container_name: subtensor-testnet-archive
volumes:
- testnet-archive-volume:/data
command:
- --base-path=/data
- --chain=./chainspecs/raw_spec_testfinney.json
- --rpc-external
- --rpc-cors=all
- --no-mdns
- --bootnodes=/dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr
- --pruning=archive