-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
117 lines (109 loc) · 3.7 KB
/
docker-compose.yml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '3.8'
services:
validator1:
platform: linux/x86_64
image: flarefoundation/go-flare:v1.7.1805
environment:
LOG_LEVEL: info
NETWORK_ID: localflare
AUTOCONFIGURE_PUBLIC_IP: 0
AUTOCONFIGURE_BOOTSTRAP: 0
PUBLIC_IP: 10.20.30.1
EXTRA_ARGUMENTS: --staking-tls-cert-file=/app/avalanchego/staking/local/staker1.crt --staking-tls-key-file=/app/avalanchego/staking/local/staker1.key --genesis=/app/avalanchego/genesis.json
ports:
- 9650:9650
- 9651:9651
volumes:
- ./local:/app/avalanchego/staking/local
- ./genesis.json:/app/avalanchego/genesis.json
networks:
nodes:
ipv4_address: 10.20.30.1
validator2:
platform: linux/x86_64
image: flarefoundation/go-flare:v1.7.1805
environment:
LOG_LEVEL: info
NETWORK_ID: localflare
AUTOCONFIGURE_PUBLIC_IP: 0
AUTOCONFIGURE_BOOTSTRAP: 0
PUBLIC_IP: 10.20.30.2
BOOTSTRAP_IPS: 10.20.30.1:9651
BOOTSTRAP_IDS: NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg
EXTRA_ARGUMENTS: --staking-tls-cert-file=/app/avalanchego/staking/local/staker2.crt --staking-tls-key-file=/app/avalanchego/staking/local/staker2.key --genesis=/app/avalanchego/genesis.json
ports:
- 5002:9650
volumes:
- ./local:/app/avalanchego/staking/local
- ./genesis.json:/app/avalanchego/genesis.json
networks:
nodes:
ipv4_address: 10.20.30.2
validator3:
platform: linux/x86_64
image: flarefoundation/go-flare:v1.7.1805
environment:
LOG_LEVEL: info
NETWORK_ID: localflare
AUTOCONFIGURE_PUBLIC_IP: 0
AUTOCONFIGURE_BOOTSTRAP: 0
STAKER_INDEX: 3
PUBLIC_IP: 10.20.30.3
BOOTSTRAP_IPS: 10.20.30.1:9651
BOOTSTRAP_IDS: NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg
EXTRA_ARGUMENTS: --staking-tls-cert-file=/app/avalanchego/staking/local/staker3.crt --staking-tls-key-file=/app/avalanchego/staking/local/staker3.key --genesis=/app/avalanchego/genesis.json
ports:
- 5003:9650
volumes:
- ./local:/app/avalanchego/staking/local
- ./genesis.json:/app/avalanchego/genesis.json
networks:
nodes:
ipv4_address: 10.20.30.3
validator4:
platform: linux/x86_64
image: flarefoundation/go-flare:v1.7.1805
environment:
LOG_LEVEL: info
NETWORK_ID: localflare
AUTOCONFIGURE_PUBLIC_IP: 0
AUTOCONFIGURE_BOOTSTRAP: 0
PUBLIC_IP: 10.20.30.4
BOOTSTRAP_IPS: 10.20.30.1:9651
BOOTSTRAP_IDS: NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg
EXTRA_ARGUMENTS: --staking-tls-cert-file=/app/avalanchego/staking/local/staker4.crt --staking-tls-key-file=/app/avalanchego/staking/local/staker4.key --genesis=/app/avalanchego/genesis.json
ports:
- 5004:9650
volumes:
- ./local:/app/avalanchego/staking/local
- ./genesis.json:/app/avalanchego/genesis.json
networks:
nodes:
ipv4_address: 10.20.30.4
validator5:
platform: linux/x86_64
image: flarefoundation/go-flare:v1.7.1805
environment:
LOG_LEVEL: info
NETWORK_ID: localflare
AUTOCONFIGURE_PUBLIC_IP: 0
AUTOCONFIGURE_BOOTSTRAP: 0
PUBLIC_IP: 10.20.30.5
BOOTSTRAP_IPS: 10.20.30.1:9651
BOOTSTRAP_IDS: NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg
EXTRA_ARGUMENTS: --staking-tls-cert-file=/app/avalanchego/staking/local/staker5.crt --staking-tls-key-file=/app/avalanchego/staking/local/staker5.key --genesis=/app/avalanchego/genesis.json
ports:
- 5005:9650
volumes:
- ./local:/app/avalanchego/staking/local
- ./genesis.json:/app/avalanchego/genesis.json
networks:
nodes:
ipv4_address: 10.20.30.5
networks:
nodes:
driver: bridge
ipam:
config:
- subnet: 10.20.30.0/24
gateway: 10.20.30.254