-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
106 lines (101 loc) · 5.4 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
version: "3"
services:
nameresolver:
image: dvdarias/docker-hoster
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- /etc/hosts:/tmp/hosts
validator:
hostname: validator.local
image: ffg
environment:
- FFG_VERIFIER_PASSPHRASE=${FFG_VERIFIER_PASSPHRASE}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- $FFG_VERIFIER0_KEYPATH:/root/filefilego_data/keystore/node_identity.json
- $FFG_VERIFIER_KEYPATH:/root/filefilego_data/keystore/keys/
command:
- /bin/bash
- -c
- |
./filefilego --geolite_db_path=data/GeoLite2-Country.mmdb --debug --validator --validator_keypath="/root/filefilego_data/keystore/keys/" --node_identity_passphrase=$FFG_VERIFIER_PASSPHRASE --rpc_services="*" --search_engine --addr=0.0.0.0 --http --http_addr=0.0.0.0 --data_downloads_path="/home/ffg/Downloads/"
node1storage:
hostname: node1storage.local
depends_on:
- nameresolver
- validator
image: ffg
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- /bin/bash
- -c
- |
rm /root/filefilego_data/keystore/node_identity.json
./filefilego address create_node_key admin
./filefilego --geolite_db_path=data/GeoLite2-Country.mmdb --storage_file_segments_encryption_percentage=1 --storage_file_merkle_tree_total_segments=1024 --debug --node_identity_passphrase=admin --rpc_services="*" --search_engine --storage --storage_public --storage_dir="/home/" --storage_token="admintoken" --storage_fees_byte="10000" --addr=0.0.0.0 --http --http_addr=0.0.0.0 --data_downloads_path="/home/ffg/Downloads/" --bootstrap_nodes="/dns/validator.local/tcp/10209/p2p/16Uiu2HAmVXbhxA1tiA9PRZJWwSk5jdMfWXbfeGWaubVeT7MZu8ie"
node2storage:
hostname: node2storage.local
depends_on:
- nameresolver
- validator
image: ffg
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- /bin/bash
- -c
- |
rm /root/filefilego_data/keystore/node_identity.json
./filefilego address create_node_key admin
./filefilego --allow_fees_override --show_storage_capacity --geolite_db_path=data/GeoLite2-Country.mmdb --storage_file_segments_encryption_percentage=1 --storage_file_merkle_tree_total_segments=1024 --debug --node_identity_passphrase=admin --rpc_services="*" --search_engine --storage --storage_public --storage_dir="/home/" --storage_token="admintoken" --storage_fees_byte="0" --addr=0.0.0.0 --http --http_addr=0.0.0.0 --data_downloads_path="/home/ffg/Downloads/" --bootstrap_nodes="/dns/validator.local/tcp/10209/p2p/16Uiu2HAmVXbhxA1tiA9PRZJWwSk5jdMfWXbfeGWaubVeT7MZu8ie"
dataverifier1:
hostname: dataverifier1.local
image: ffg
depends_on:
- nameresolver
- validator
environment:
- FFG_VERIFIER_PASSPHRASE=${FFG_VERIFIER_PASSPHRASE}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- $FFG_VERIFIER1_KEYPATH:/root/filefilego_data/keystore/node_identity.json
command:
- /bin/bash
- -c
- |
./filefilego --geolite_db_path=data/GeoLite2-Country.mmdb --storage_file_segments_encryption_percentage=1 --storage_file_merkle_tree_total_segments=1024 --debug --verify --node_identity_passphrase=$FFG_VERIFIER_PASSPHRASE --rpc_services="*" --search_engine --addr=0.0.0.0 --http --http_addr=0.0.0.0 --data_downloads_path="/home/ffg/Downloads/" --data_verification_fees="80000000000000000" --data_verification_transaction_fees="0x1" --bootstrap_nodes="/dns/validator.local/tcp/10209/p2p/16Uiu2HAmVXbhxA1tiA9PRZJWwSk5jdMfWXbfeGWaubVeT7MZu8ie"
dataverifier2:
hostname: dataverifier2.local
image: ffg
depends_on:
- nameresolver
- validator
environment:
- FFG_VERIFIER_PASSPHRASE=${FFG_VERIFIER_PASSPHRASE}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- $FFG_VERIFIER2_KEYPATH:/root/filefilego_data/keystore/node_identity.json
command:
- /bin/bash
- -c
- |
./filefilego --geolite_db_path=data/GeoLite2-Country.mmdb --storage_file_segments_encryption_percentage=1 --storage_file_merkle_tree_total_segments=1024 --debug --verify --node_identity_passphrase=$FFG_VERIFIER_PASSPHRASE --rpc_services="*" --search_engine --addr=0.0.0.0 --http --http_addr=0.0.0.0 --data_downloads_path="/home/ffg/Downloads/" --data_verification_fees="80000000000000000" --data_verification_transaction_fees="0x1" --bootstrap_nodes="/dns/validator.local/tcp/10209/p2p/16Uiu2HAmVXbhxA1tiA9PRZJWwSk5jdMfWXbfeGWaubVeT7MZu8ie"
superlightnode:
hostname: superlightnode.local
depends_on:
- nameresolver
- validator
image: ffg
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- /bin/bash
- -c
- |
rm /root/filefilego_data/keystore/node_identity.json
./filefilego address create_node_key admin
./filefilego --geolite_db_path=data/GeoLite2-Country.mmdb --storage_file_segments_encryption_percentage=1 --storage_file_merkle_tree_total_segments=1024 --debug --super_light_node --node_identity_passphrase=admin --rpc_services="data_transfer,transaction,address,filefilego" --addr=0.0.0.0 --http --http_addr=0.0.0.0 --data_downloads_path="/home/ffg/Downloads/" --bootstrap_nodes="/dns/validator.local/tcp/10209/p2p/16Uiu2HAmVXbhxA1tiA9PRZJWwSk5jdMfWXbfeGWaubVeT7MZu8ie"