-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathdocker-compose.localnet.yml
More file actions
66 lines (63 loc) · 1.39 KB
/
docker-compose.localnet.yml
File metadata and controls
66 lines (63 loc) · 1.39 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
volumes:
subtensor-alice:
subtensor-bob:
services:
common: &common
image: ghcr.io/opentensor/subtensor:latest-local
cpu_count: 4
mem_limit: 40000000000
memswap_limit: 80000000000
environment:
- CARGO_HOME=/var/www/node-subtensor/.cargo
alice:
<<: *common
container_name: subtensor-alice
build:
context: .
dockerfile: Dockerfile
target: subtensor-local
ports:
- "9944:9944"
- "30334:30334"
expose:
- 9944
- 30334
volumes:
- subtensor-alice:/tmp/blockchain
command:
- --base-path=/tmp/blockchain
- --chain=/localnet.json
- --rpc-external
- --rpc-methods=unsafe
- --alice
- --port=30334
- --rpc-port=9944
- --validator
- --rpc-cors=all
- --allow-private-ipv4
- --discover-local
- --unsafe-force-node-key-generation
bob:
<<: *common
container_name: subtensor-bob
expose:
- 9945
- 30335
ports:
- "9945:9945"
- "30335:30335"
volumes:
- subtensor-bob:/tmp/blockchain
command:
- --base-path=/tmp/blockchain
- --chain=/localnet.json
- --rpc-external
- --rpc-methods=unsafe
- --bob
- --port=30335
- --rpc-port=9945
- --validator
- --rpc-cors=all
- --allow-private-ipv4
- --discover-local
- --unsafe-force-node-key-generation