generated from opentensor/bittensor-subnet-template
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
87 lines (82 loc) · 2.3 KB
/
docker-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
services:
subtensor:
image: ghcr.io/masa-finance/masa-bittensor/subtensor:${BRANCH_NAME:-latest}
platform: linux/amd64
build:
context: ./docker/subtensor
dockerfile: Dockerfile
container_name: subtensor_machine
ports:
- "9945:9945"
- "9946:9946"
- "30334:30334"
- "30335:30335"
networks:
- subtensor_network
subnet:
image: ghcr.io/masa-finance/masa-bittensor/subnet:${BRANCH_NAME:-latest}
platform: linux/amd64
build:
context: .
dockerfile: ./docker/subnet/Dockerfile
container_name: subnet_machine
depends_on:
- subtensor
networks:
- subtensor_network
environment:
- COLDKEY_PASSWORD=${COLDKEY_PASSWORD:-your_coldkey_password}
- HOTKEY_PASSWORD=${HOTKEY_PASSWORD:-your_hotkey_password}
miner:
image: ghcr.io/masa-finance/masa-bittensor/miner:${BRANCH_NAME:-latest}
platform: linux/amd64
build:
context: .
dockerfile: ./docker/miner/Dockerfile
container_name: miner_machine
ports:
- "8093:8093"
depends_on:
- subnet
networks:
- subtensor_network
environment:
- COLDKEY_PASSWORD=${COLDKEY_PASSWORD:-your_coldkey_password}
- HOTKEY_PASSWORD=${HOTKEY_PASSWORD:-your_hotkey_password}
validator:
image: ghcr.io/masa-finance/masa-bittensor/validator:${BRANCH_NAME:-latest}
platform: linux/amd64
build:
context: .
dockerfile: ./docker/validator/Dockerfile
container_name: validator_machine
ports:
- "8000:8000"
- "8092:8092"
depends_on:
- subnet
networks:
- subtensor_network
environment:
- COLDKEY_PASSWORD=${COLDKEY_PASSWORD:-your_coldkey_password}
- HOTKEY_PASSWORD=${HOTKEY_PASSWORD:-your_hotkey_password}
protocol:
image: ghcr.io/masa-finance/masa-bittensor/protocol:${BRANCH_NAME:-latest}
platform: linux/amd64
build:
context: .
dockerfile: ./docker/protocol/Dockerfile
container_name: protocol_machine
ports:
- "8081:8081"
- "4001:4001"
depends_on:
- subnet
networks:
- subtensor_network
environment:
- COLDKEY_PASSWORD=${COLDKEY_PASSWORD:-your_coldkey_password}
- HOTKEY_PASSWORD=${HOTKEY_PASSWORD:-your_hotkey_password}
networks:
subtensor_network:
driver: bridge