-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.testnet.yml
More file actions
67 lines (64 loc) · 1.63 KB
/
docker-compose.testnet.yml
File metadata and controls
67 lines (64 loc) · 1.63 KB
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
version: "3.8"
services:
# Bootnode pour la découverte réseau
bootnode:
build:
context: .
target: runtime
args:
VERSION: ${VERSION:-local}
GIT_COMMIT: ${GIT_COMMIT:-unknown}
BUILD_TIMESTAMP: ${BUILD_TIMESTAMP:-unknown}
image: tsn-node:${VERSION:-latest}
container_name: tsn-bootnode
command:
- "--chain=local"
- "--base-path=/data"
- "--node-key=bootnode-key-001"
- "--listen-addr=/ip4/0.0.0.0/tcp/30333"
- "--prometheus-external"
- "--prometheus-port=9090"
volumes:
- bootnode-data:/data
ports:
- "30333:30333"
- "9090:9090"
networks:
tsn-testnet:
ipv4_address: 172.28.0.2
healthcheck:
test: ["CMD", "/app/tsn-node", "--health-check"]
interval: 10s
timeout: 5s
retries: 5
# Validateur 1
validator-1:
image: tsn-node:${VERSION:-latest}
container_name: tsn-validator-1
depends_on:
bootnode:
condition: service_healthy
command:
- "--chain=local"
- "--base-path=/data"
- "--validator"
- "--bootnodes=/dns/bootnode/tcp/30333/p2p/12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2"
- "--listen-addr=/ip4/0.0.0.0/tcp/30334"
- "--rpc-external"
- "--rpc-cors=all"
- "--rpc-methods=unsafe"
- "--prometheus-external"
- "--prometheus-port=9090"
- "--name=validator-1"
volumes:
- validator-1-data:/data
ports:
- "30334:30334"
- "9944:9944"
- "9091:9090"
networks:
tsn-testnet:
ipv4_address: 172.28.0.10
environment:
- RUST_LOG=info
# Validateur 2