-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.stage.yml
147 lines (140 loc) · 3.62 KB
/
docker-compose.stage.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
version: "3.3"
services:
validator1:
container_name: validator1
build:
context: ./images/node
args:
- BRANCH=da-poc-upgrade-3.0
image: da:poc3
tmpfs: /tmp
volumes:
- validator1-state:/da/state
- ./volume/stage/customSpec.json:/da/chain_spec.json:ro
- ./volume/stage/validator1/node.private.key:/da/node.key:ro
- ./volume/stage/validator1/keystore:/da/keystore
#ports:
#- 9944:9944
#- 30333:30333
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
command:
--validator
--chain /da/chain_spec.json
--base-path /da/state
--name MATIC_VALIDATOR_1
--node-key-file /da/node.key
--keystore-path /da/keystore
--execution Native
--in-peers 10
--out-peers 10
--port 30333
--no-prometheus
--rpc-cors all
--unsafe-ws-external
--rpc-methods=Unsafe
--ws-port 9944
--rpc-port 9933
validator2:
container_name: validator2
image: da:poc3
tmpfs: /tmp
volumes:
- validator2-state:/da/state
- ./volume/stage/customSpec.json:/da/chain_spec.json:ro
- ./volume/stage/validator2/node.private.key:/da/node.key:ro
- ./volume/stage/validator2/keystore:/da/keystore
#ports:
#- 9944:9944
#- 30333:30333
depends_on:
- validator1
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
command:
--validator
--chain /da/chain_spec.json
--base-path /da/state
--name MATIC_VALIDATOR_2
--node-key-file /da/node.key
--keystore-path /da/keystore
--bootnodes /dns4/validator1/tcp/30333/p2p/12D3KooWHxePyMWRmrwWmxaFmHHLs5qKmZPhAP5puJ2ZwMQMfAfB
--execution Native
--in-peers 10
--out-peers 10
--port 30333
--no-prometheus
--rpc-cors all
--unsafe-ws-external
--rpc-methods=Unsafe
--ws-port 9944
--rpc-port 9933
validator3:
container_name: validator3
image: da:poc3
tmpfs: /tmp
volumes:
- validator3-state:/da/state
- ./volume/stage/customSpec.json:/da/chain_spec.json:ro
- ./volume/stage/validator3/node.private.key:/da/node.key:ro
- ./volume/stage/validator3/keystore:/da/keystore
#ports:
#- 9944:9944
#- 30333:30333
depends_on:
- validator1
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
command:
--validator
--chain /da/chain_spec.json
--base-path /da/state
--name MATIC_VALIDATOR_3
--node-key-file /da/node.key
--keystore-path /da/keystore
--bootnodes /dns4/validator1/tcp/30333/p2p/12D3KooWHxePyMWRmrwWmxaFmHHLs5qKmZPhAP5puJ2ZwMQMfAfB
--execution Native
--in-peers 10
--out-peers 10
--port 30333
--no-prometheus
--rpc-cors all
--unsafe-rpc-external
--rpc-methods=Unsafe
--ws-port 9944
--rpc-port 9933
dapp:
container_name: dapp
build:
context: ./images/dapp
image: da-dap:master
volumes:
- dapp_html:/html/
proxy:
container_name: proxy
image: kong:2.6.0-alpine
env_file: env/proxy.env
volumes:
- dapp_html:/proxy/html/dapp
#- /etc/letsencrypt/:/proxy/certs
- ./volume/proxy/certs/:/proxy/certs:ro
- ./volume/proxy/kong.yml:/proxy/kong.yml:ro
- ./volume/proxy/dapp_nginx.template:/proxy/dapp_nginx.template:ro
ports:
- 443:8443
- 80:8000
volumes:
validator1-state:
validator2-state:
validator3-state:
dapp_html:
# vim: ts=2:et