forked from NousResearch/finetuning-subnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
95 lines (88 loc) · 2.1 KB
/
compose.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# To change the build spec or purge chain edit this -> BUILD_CHAIN_SPEC=0 PURGE_CHAIN=0 docker-compose up
# Subtensor local node preset names are: alice, bob, charlie, dave, eve, ferdie. Anything else fails.
services:
subtensor-node-alice:
build:
context: scripts/dev/subtensor
dockerfile: Dockerfile
ports:
- 30334:30334
- 9946:9946
environment:
BUILD_CHAIN_SPEC: 0
PURGE_CHAIN: ${PURGE_CHAIN:-0}
NODE_NAME: alice
volumes:
- ./scripts/dev/spec/:/etc/subtensor
- chain-state:/var/lib/subtensor/chain-state
networks:
subtensor_network:
ipv4_address: 172.28.1.10
subtensor-node-bob:
build:
context: scripts/dev/subtensor
dockerfile: Dockerfile
ports:
- 30334
- 9946
environment:
BUILD_CHAIN_SPEC: 0
PURGE_CHAIN: ${PURGE_CHAIN:-0}
NODE_NAME: bob
volumes:
- ./scripts/dev/spec/:/etc/subtensor
- chain-state:/var/lib/subtensor/chain-state
networks:
subtensor_network:
ipv4_address: 172.28.1.11
subtensor-node-eve:
build:
context: scripts/dev/subtensor
dockerfile: Dockerfile
ports:
- 30334
- 9946
environment:
BUILD_CHAIN_SPEC: 0
PURGE_CHAIN: ${PURGE_CHAIN:-0}
NODE_NAME: eve
volumes:
- ./scripts/dev/spec/:/etc/subtensor
- chain-state:/var/lib/subtensor/chain-state
networks:
subtensor_network:
ipv4_address: 172.28.1.12
btcli:
build:
context: scripts/dev/btcli
dockerfile: Dockerfile
networks:
subtensor_network:
networks:
subtensor_network:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
volumes:
chain-state:
# miner:
# build:
# context: .
# dockerfile: Dockerfile.dev
# volumes:
# - ../.:/usr/src
# ports:
# - "8008:8008"
# environment:
# - PORT=8008
# command:
# [
# "watchmedo",
# "auto-restart",
# "--recursive",
# "--patterns=*.py",
# "--",
# "python",
# "/usr/src/app/neurons/miner.py",
# ]