Skip to content

Commit b76e3d0

Browse files
author
igorsyl
committed
fix docker-compose
1 parent 548f984 commit b76e3d0

File tree

2 files changed

+56
-76
lines changed

2 files changed

+56
-76
lines changed

docker-compose.localnet.yml

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,18 @@ services:
2727
volumes:
2828
- subtensor-alice:/tmp/blockchain
2929
command:
30-
- /bin/bash
31-
- -c
32-
- |
33-
node-subtensor \
34-
--base-path /tmp/blockchain \
35-
--chain localnet.json \
36-
--rpc-external \
37-
--rpc-methods=unsafe \
38-
--alice \
39-
--port 30334 \
40-
--rpc-port 9944 \
41-
--validator \
42-
--rpc-cors=all \
43-
--allow-private-ipv4 \
44-
--discover-local \
45-
--unsafe-force-node-key-generation
30+
- --base-path=/tmp/blockchain
31+
- --chain=/localnet.json
32+
- --rpc-external
33+
- --rpc-methods=unsafe
34+
- --alice
35+
- --port=30334
36+
- --rpc-port=9944
37+
- --validator
38+
- --rpc-cors=all
39+
- --allow-private-ipv4
40+
- --discover-local
41+
- --unsafe-force-node-key-generation
4642

4743
bob:
4844
<<: *common
@@ -56,19 +52,15 @@ services:
5652
volumes:
5753
- subtensor-bob:/tmp/blockchain
5854
command:
59-
- /bin/bash
60-
- -c
61-
- |
62-
node-subtensor \
63-
--base-path /tmp/blockchain \
64-
--chain localnet.json \
65-
--bob \
66-
--rpc-methods=unsafe \
67-
--rpc-external \
68-
--port 30335 \
69-
--rpc-port 9945 \
70-
--validator \
71-
--rpc-cors=all \
72-
--allow-private-ipv4 \
73-
--discover-local \
74-
--unsafe-force-node-key-generation
55+
- --base-path=/tmp/blockchain
56+
- --chain=/localnet.json
57+
- --rpc-external
58+
- --rpc-methods=unsafe
59+
- --bob
60+
- --port=30335
61+
- --rpc-port=9945
62+
- --validator
63+
- --rpc-cors=all
64+
- --allow-private-ipv4
65+
- --discover-local
66+
- --unsafe-force-node-key-generation

docker-compose.yml

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -33,68 +33,56 @@ services:
3333
volumes:
3434
- mainnet-lite-volume:/tmp/blockchain
3535
command:
36-
- /bin/bash
37-
- -c
38-
- |
39-
node-subtensor \
40-
--base-path /tmp/blockchain \
41-
--chain raw_spec_finney.json \
42-
--rpc-external --rpc-cors all \
43-
--no-mdns \
44-
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
45-
--sync warp
36+
- --base-path=/tmp/blockchain
37+
- --chain=/raw_spec_finney.json
38+
- --rpc-external
39+
- --rpc-cors=all
40+
- --no-mdns
41+
- --bootnodes=/dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC
42+
- --sync=warp
4643

4744
mainnet-archive:
4845
<<: *common
4946
container_name: subtensor-mainnet-archive
5047
volumes:
5148
- mainnet-archive-volume:/tmp/blockchain
5249
command:
53-
- /bin/bash
54-
- -c
55-
- |
56-
node-subtensor \
57-
--base-path /tmp/blockchain \
58-
--chain raw_spec_finney.json \
59-
--rpc-external --rpc-cors all \
60-
--no-mdns \
61-
--bootnodes /dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC \
62-
--pruning=archive
50+
- --base-path=/tmp/blockchain
51+
- --chain=/raw_spec_finney.json
52+
- --rpc-external
53+
- --rpc-cors=all
54+
- --no-mdns
55+
- --bootnodes=/dns/bootnode.finney.chain.opentensor.ai/tcp/30333/ws/p2p/12D3KooWRwbMb85RWnT8DSXSYMWQtuDwh4LJzndoRrTDotTR5gDC
56+
- --pruning=archive
6357

6458
testnet-lite:
6559
<<: *common
6660
container_name: subtensor-testnet-lite
6761
volumes:
6862
- testnet-lite-volume:/tmp/blockchain
6963
command:
70-
- /bin/bash
71-
- -c
72-
- |
73-
node-subtensor \
74-
--base-path /tmp/blockchain \
75-
--chain raw_spec_testfinney.json \
76-
--rpc-external --rpc-cors all \
77-
--no-mdns \
78-
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
79-
--sync warp
80-
--reserved-nodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
81-
--reserved-only
64+
- --base-path=/tmp/blockchain
65+
- --chain=/raw_spec_testfinney.json
66+
- --rpc-external
67+
- --rpc-cors=all
68+
- --no-mdns
69+
- --bootnodes=/dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr
70+
- --sync=warp
71+
- --reserved-nodes=/dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr
72+
- --reserved-only
8273

8374
testnet-archive:
8475
<<: *common
8576
container_name: subtensor-testnet-archive
8677
volumes:
8778
- testnet-archive-volume:/tmp/blockchain
8879
command:
89-
- /bin/bash
90-
- -c
91-
- |
92-
node-subtensor \
93-
--base-path /tmp/blockchain \
94-
--chain raw_spec_testfinney.json \
95-
--rpc-external --rpc-cors all \
96-
--no-mdns \
97-
--bootnodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
98-
--pruning=archive
99-
--reserved-nodes /dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr \
100-
--reserved-only
80+
- --base-path=/tmp/blockchain
81+
- --chain=/raw_spec_testfinney.json
82+
- --rpc-external
83+
- --rpc-cors=all
84+
- --no-mdns
85+
- --bootnodes=/dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr
86+
- --pruning=archive
87+
- --reserved-nodes=/dns/bootnode.test.finney.opentensor.ai/tcp/30333/p2p/12D3KooWPM4mLcKJGtyVtkggqdG84zWrd7Rij6PGQDoijh1X86Vr
88+
- --reserved-only

0 commit comments

Comments
 (0)