-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
181 lines (170 loc) · 5.37 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Setup a network of 3 nodes with 3 database, with a metric collection and two services to run benchmarks and validation
#
# # Usage
#
# ## start local network
#
# $ docker-compose up
#
# ## benchmark network
#
# $ docker-compose up bench
#
# ## validate network
#
# $ docker-compose up validate
#
version: "3.9"
services:
node1:
image: archethic-node:latest
environment:
- ARCHETHIC_CRYPTO_NODE_KEYSTORE_IMPL=SOFTWARE
- ARCHETHIC_CRYPTO_SEED=node1
- ARCHETHIC_MUT_DIR=/opt/data
- ARCHETHIC_NETWORKING_IMPL=STATIC
- ARCHETHIC_STATIC_IP=172.16.1.10
- ARCHETHIC_NETWORKING_PORT_FORWARDING=false
- ARCHETHIC_P2P_BOOTSTRAPPING_SEEDS=172.16.1.10:30002:00011D967D71B2E135C84206DDD108B5925A2CD99C8EBC5AB5D8FD2EC9400CE3C98A:tcp
- ARCHETHIC_NODE_ALLOWED_KEY_ORIGINS=software
- ARCHETHIC_LOGGER_LEVEL=debug
- ARCHETHIC_BEACON_CHAIN_SLOT_TIMER_INTERVAL=*/10 * * * * *
- ARCHETHIC_BEACON_CHAIN_SUMMARY_TIMER_INTERVAL=0 * * * * *
- ARCHETHIC_ORACLE_CHAIN_POLLING_INTERVAL=*/10 * * * * *
- ARCHETHIC_ORACLE_CHAIN_SUMMARY_INTERVAL=0 * * * * *
- ARCHETHIC_SHARED_SECRETS_RENEWAL_SCHEDULER_INTERVAL=40 * * * * * *
- ARCHETHIC_SHARED_SECRETS_APPLICATION_INTERVAL=0 * * * * * *
- ARCHETHIC_SELF_REPAIR_SCHEDULER_INTRERVAL=5 * * * * * *
- ARCHETHIC_NODE_IP_VALIDATION=false
- ARCHETHIC_NETWORK_TYPE=testnet
volumes:
- ./scripts/wait-for-tcp.sh:/wait-for-tcp.sh:ro
command:
[
"./bin/archethic_node",
"foreground"
]
networks:
archethic_net:
ipv4_address: 172.16.1.10
ports:
- 4000:40000
node2:
image: archethic-node:latest
environment:
- ARCHETHIC_CRYPTO_NODE_KEYSTORE_IMPL=SOFTWARE
- ARCHETHIC_CRYPTO_SEED=node2
- ARCHETHIC_MUT_DIR=/opt/data
- ARCHETHIC_NETWORKING_IMPL=STATIC
- ARCHETHIC_STATIC_IP=172.16.1.11
- ARCHETHIC_NETWORKING_PORT_FORWARDING=false
- ARCHETHIC_P2P_BOOTSTRAPPING_SEEDS=172.16.1.10:30002:00011D967D71B2E135C84206DDD108B5925A2CD99C8EBC5AB5D8FD2EC9400CE3C98A:tcp
- ARCHETHIC_NODE_ALLOWED_KEY_ORIGINS=software
- ARCHETHIC_LOGGER_LEVEL=debug
- ARCHETHIC_BEACON_CHAIN_SLOT_TIMER_INTERVAL=*/10 * * * * *
- ARCHETHIC_BEACON_CHAIN_SUMMARY_TIMER_INTERVAL=0 * * * * *
- ARCHETHIC_ORACLE_CHAIN_POLLING_INTERVAL=*/10 * * * * *
- ARCHETHIC_ORACLE_CHAIN_SUMMARY_INTERVAL=0 * * * * *
- ARCHETHIC_SHARED_SECRETS_RENEWAL_SCHEDULER_INTERVAL=40 * * * * * *
- ARCHETHIC_SHARED_SECRETS_APPLICATION_INTERVAL=0 * * * * * *
- ARCHETHIC_SELF_REPAIR_SCHEDULER_INTRERVAL=5 * * * * * *
- ARCHETHIC_NODE_IP_VALIDATION=false
- ARCHETHIC_NETWORK_TYPE=testnet
volumes:
- ./scripts/wait-for-node.sh:/wait-for-node.sh:ro
command:
[
"/wait-for-node.sh",
"node1:40000/up",
"./bin/archethic_node",
"foreground"
]
networks:
archethic_net:
ipv4_address: 172.16.1.11
ports:
- 4001:40000
node3:
image: archethic-node:latest
environment:
- ARCHETHIC_CRYPTO_NODE_KEYSTORE_IMPL=SOFTWARE
- ARCHETHIC_CRYPTO_SEED=node3
- ARCHETHIC_MUT_DIR=/opt/data
- ARCHETHIC_NETWORKING_IMPL=STATIC
- ARCHETHIC_STATIC_IP=172.16.1.12
- ARCHETHIC_NETWORKING_PORT_FORWARDING=false
- ARCHETHIC_P2P_BOOTSTRAPPING_SEEDS=172.16.1.10:30002:00011D967D71B2E135C84206DDD108B5925A2CD99C8EBC5AB5D8FD2EC9400CE3C98A:tcp
- ARCHETHIC_NODE_ALLOWED_KEY_ORIGINS=software
- ARCHETHIC_LOGGER_LEVEL=debug
- ARCHETHIC_BEACON_CHAIN_SLOT_TIMER_INTERVAL=*/10 * * * * *
- ARCHETHIC_BEACON_CHAIN_SUMMARY_TIMER_INTERVAL=0 * * * * *
- ARCHETHIC_ORACLE_CHAIN_POLLING_INTERVAL=*/10 * * * * *
- ARCHETHIC_ORACLE_CHAIN_SUMMARY_INTERVAL=0 * * * * *
- ARCHETHIC_SHARED_SECRETS_RENEWAL_SCHEDULER_INTERVAL=40 * * * * * *
- ARCHETHIC_SHARED_SECRETS_APPLICATION_INTERVAL=0 * * * * * *
- ARCHETHIC_SELF_REPAIR_SCHEDULER_INTRERVAL=5 * * * * * *
- ARCHETHIC_NODE_IP_VALIDATION=false
- ARCHETHIC_NETWORK_TYPE=testnet
volumes:
- ./scripts/wait-for-node.sh:/wait-for-node.sh:ro
command:
[
"/wait-for-node.sh",
"node1:40000/up",
"./bin/archethic_node",
"foreground"
]
networks:
archethic_net:
ipv4_address: 172.16.1.12
ports:
- 4002:40000
collector:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
profiles: [ "monitoring" ]
networks:
archethic_net:
ipv4_address: 172.16.1.200
bench:
image: archethic-node:latest
environment:
- ARCHETHIC_MUT_DIR=/opt/data
command:
[
"./bin/archethic_node",
"regression_test",
"--bench",
"node1",
"node2",
"node3"
]
profiles: [ "validate" ]
networks:
archethic_net:
ipv4_address: 172.16.1.201
validate:
image: archethic-node:latest
environment:
- ARCHETHIC_MUT_DIR=/opt/data
command:
[
"./bin/archethic_node",
"regression_test",
"--playbook",
"node1",
"node2",
"node3"
]
profiles: [ "validate" ]
networks:
archethic_net:
ipv4_address: 172.16.1.202
networks:
archethic_net:
name: archethic_net
ipam:
driver: default
config:
- subnet: "172.16.1.0/24"