-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose_sirato.yaml
159 lines (149 loc) · 4.02 KB
/
docker-compose_sirato.yaml
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
version: "3.7"
services:
validator1:
image: hyperledger/besu:22.10.3
restart: unless-stopped
container_name: validator1
volumes:
- ./genesis.json:/opt/besu/genesis.json
- ./keys/validator1/key:/opt/besu/key
network_mode: "host"
env_file:
- ./common.env
- ./bootnodes.env
environment:
- BESU_IDENTITY=validator1
- BESU_MINER_EXTRA_DATA=0x76616c696461746f7231
- BESU_P2P_PORT=30301
- BESU_RPC_HTTP_API=ADMIN,DEBUG,ETH,NET,PERM,PLUGINS,QBFT,TRACE,TXPOOL,WEB3
- BESU_RPC_HTTP_AUTHENTICATION_ENABLED=false
- BESU_RPC_HTTP_CORS_ORIGINS=all
- BESU_RPC_HTTP_ENABLED=true
- BESU_RPC_HTTP_HOST=0.0.0.0
- BESU_RPC_HTTP_MAX_ACTIVE_CONNECTIONS=100
- BESU_RPC_HTTP_PORT=8545
- BESU_RPC_WS_API=ADMIN,DEBUG,ETH,NET,PERM,PLUGINS,QBFT,TRACE,TXPOOL,WEB3
- BESU_RPC_WS_AUTHENTICATION_ENABLED=false
- BESU_RPC_WS_ENABLED=true
- BESU_RPC_WS_HOST=0.0.0.0
- BESU_RPC_WS_MAX_ACTIVE_CONNECTIONS=100
- BESU_RPC_WS_PORT=8546
validator2:
image: hyperledger/besu:22.10.3
restart: unless-stopped
container_name: validator2
volumes:
- ./genesis.json:/opt/besu/genesis.json
- ./keys/validator2/key:/opt/besu/key
network_mode: "host"
env_file:
- ./common.env
- ./bootnodes.env
environment:
- BESU_IDENTITY=validator2
- BESU_MINER_EXTRA_DATA=0x76616c696461746f7232
- BESU_P2P_PORT=30302
validator3:
image: hyperledger/besu:22.10.3
restart: unless-stopped
container_name: validator3
volumes:
- ./genesis.json:/opt/besu/genesis.json
- ./keys/validator3/key:/opt/besu/key
network_mode: "host"
env_file:
- ./common.env
- ./bootnodes.env
environment:
- BESU_IDENTITY=validator3
- BESU_MINER_EXTRA_DATA=0x76616c696461746f7233
- BESU_P2P_PORT=30303
validator4:
image: hyperledger/besu:22.10.3
restart: unless-stopped
container_name: validator4
volumes:
- ./genesis.json:/opt/besu/genesis.json
- ./keys/validator4/key:/opt/besu/key
network_mode: "host"
env_file:
- ./common.env
- ./bootnodes.env
environment:
- BESU_IDENTITY=validator4
- BESU_MINER_EXTRA_DATA=0x76616c696461746f7234
- BESU_P2P_PORT=30304
api:
image: web3labs/epirus-free-api:latest
restart: unless-stopped
container_name: epirus_api
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
- NODE_ENDPOINT=http://host.docker.internal:8545
- MONGO_CLIENT_URI=mongodb://mongodb:27017
- REINDEX_ENDPOINT=http://ingestion/reindex/
- MONGO_DB_NAME=epirus
- MONGO_CREATE_INDICES=true
depends_on:
- mongodb
networks:
- epirus
mongodb:
image: mongo:5.0.8
restart: unless-stopped
container_name: epirus_mongodb
environment:
- COMPOSE_HTTP_TIMEOUT=900
- DOCKER_CLIENT_TIMEOUT=900
entrypoint: mongod --bind_ip "0.0.0.0"
depends_on:
- validator1
networks:
- epirus
web:
image: web3labs/epirus-free-web:latest
restart: unless-stopped
container_name: epirus_web
environment:
- API_URL=/api
depends_on:
- api
networks:
- epirus
ingestion:
image: web3labs/epirus-free-ingestion:latest
restart: unless-stopped
container_name: epirus_ingestion
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
- NODE_ENDPOINT=http://host.docker.internal:8545
- MONGO_CLIENT_URI=mongodb://mongodb:27017
- MONGO_DB_NAME=epirus
depends_on:
- mongodb
networks:
- epirus
nginx:
image: nginx:latest
restart: unless-stopped
container_name: epirus_nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./5xx.html:/www/error_pages/5xx.html
ports:
- 80:80
depends_on:
- api
- web
networks:
- epirus
networks:
epirus:
name: epirus
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.239.0/24