-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
113 lines (110 loc) · 4.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
version: '3'
services:
bootnode:
image: "ghcr.io/futureversecom/fork-release-state-${NETWORK:-root}"
# image: zeeshans/seed:live-state-root
command:
- "/output/binary"
- "--chain=/output/fork.json"
- "--name=bootnode"
- "--validator"
- "--alice"
- "--tmp"
- "--unsafe-rpc-external"
- "--rpc-cors=all"
- "--rpc-port=9944"
- "--node-key=0000000000000000000000000000000000000000000000000000000000000001"
deploy:
resources:
reservations:
cpus: "0.1"
memory: "512M"
limits:
cpus: "1"
memory: "2512M"
labels:
# RPC config
# - "traefik.http.routers.bootnode-rpc.rule=(Host(`127.0.0.1`) || Host(`devnet.cicd.rootnet.app`)) && PathPrefix(`/`)"
- "traefik.http.routers.bootnode-rpc.rule=Host(`devnet.cicd.rootnet.app`) && Path(`/`)"
- "traefik.http.routers.bootnode-rpc.entrypoints=substrate-rpc"
- "traefik.http.routers.bootnode-rpc.service=node-rpc-svc"
- "traefik.http.services.node-rpc-svc.loadbalancer.server.port=9944"
- "traefik.http.middlewares.bootnode-rpc.headers.customrequestheaders.Upgrade=websocket"
- "traefik.http.middlewares.bootnode-rpc.headers.customrequestheaders.Connection=Upgrade"
- "traefik.http.routers.bootnode-rpc.tls=true"
- "traefik.http.routers.bootnode-rpc.tls.certresolver=myresolver"
validator1:
image: "ghcr.io/futureversecom/fork-release-state-${NETWORK:-root}"
# image: zeeshans/seed:live-state-root
command:
- "/output/binary"
- "--chain=/output/fork.json"
- "--name=validator1"
- "--validator"
- "--bob"
- "--tmp"
- "--unsafe-rpc-external"
- "--rpc-cors=all"
- "--rpc-port=9944"
- "--bootnodes=/dns/bootnode/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
deploy:
resources:
reservations:
cpus: "0.1"
memory: "512M"
limits:
cpus: "1"
memory: "2512M"
depends_on:
- bootnode
labels:
# RPC config
# - "traefik.http.routers.validator-1-rpc.rule=(Host(`127.0.0.1`) || Host(`devnet.cicd.rootnet.app`)) && PathPrefix(`/`)"
- "traefik.http.routers.validator-1-rpc.rule=Host(`devnet.cicd.rootnet.app`) && Path(`/`)"
- "traefik.http.routers.validator-1-rpc.entrypoints=substrate-rpc"
- "traefik.http.routers.validator-1-rpc.service=node-rpc-svc"
- "traefik.http.services.node-rpc-svc.loadbalancer.server.port=9944"
- "traefik.http.middlewares.validator-1-rpc.headers.customrequestheaders.Upgrade=websocket"
- "traefik.http.middlewares.validator-1-rpc.headers.customrequestheaders.Connection=Upgrade"
- "traefik.http.routers.validator-1-rpc.tls=true"
- "traefik.http.routers.validator-1-rpc.tls.certresolver=myresolver"
validator2:
image: "ghcr.io/futureversecom/fork-release-state-${NETWORK:-root}"
# image: zeeshans/seed:live-state-root
command:
- "/output/binary"
- "--chain=/output/fork.json"
- "--name=validator2"
- "--validator"
- "--charlie"
- "--tmp"
- "--unsafe-rpc-external"
- "--rpc-cors=all"
- "--rpc-port=9944"
- "--bootnodes=/dns/bootnode/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
deploy:
resources:
reservations:
cpus: "0.1"
memory: "512M"
limits:
cpus: "1"
memory: "2512M"
depends_on:
- bootnode
labels:
# RPC config
# - "traefik.http.routers.validator-2-rpc.rule=(Host(`127.0.0.1`) || Host(`devnet.cicd.rootnet.app`)) && PathPrefix(`/`)"
- "traefik.http.routers.validator-2-rpc.rule=Host(`devnet.cicd.rootnet.app`) && Path(`/`)"
- "traefik.http.routers.validator-2-rpc.entrypoints=substrate-rpc"
- "traefik.http.routers.validator-2-rpc.service=node-rpc-svc"
- "traefik.http.services.node-rpc-svc.loadbalancer.server.port=9944"
- "traefik.http.middlewares.validator-2-rpc.headers.customrequestheaders.Upgrade=websocket"
- "traefik.http.middlewares.validator-2-rpc.headers.customrequestheaders.Connection=Upgrade"
- "traefik.http.routers.validator-2-rpc.tls=true"
- "traefik.http.routers.validator-2-rpc.tls.certresolver=myresolver"
# network already exists - attach to existing traefik network
networks:
default:
external:
name: "traefik_default"