-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose.yml
212 lines (203 loc) · 6.6 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
version: '3.7'
services:
clickhouse:
image: yandex/clickhouse-server
container_name: clickhouse
restart: unless-stopped
environment:
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=
- CLICKHOUSE_DB=default
deploy:
resources:
limits:
cpus: '2'
memory: 12g
reservations:
cpus: '0.25'
memory: 4g
ulimits:
nofile:
soft: 262144
hard: 262144
hostname: clickhouse
ports:
- "8123:8123"
volumes:
- ./.volumes/clickhouse:/var/lib/clickhouse
client:
image: yandex/clickhouse-client
container_name: clickhouse-client
restart: always
entrypoint:
- /bin/sleep
command:
- infinity
tabix:
image: spoonest/clickhouse-tabix-web-client
container_name: clickhouse-tabix-web-client
restart: always
ports:
- "8081:80"
environment:
- CH_HOST=clickhouse:8123
prometheus:
image: prom/prometheus:latest
sysctls:
- net.ipv6.conf.lo.disable_ipv6=0
- net.ipv6.conf.all.disable_ipv6=0
container_name: prometheus
restart: unless-stopped
deploy:
resources:
limits:
memory: 256m
volumes:
- ./.volumes/prometheus/:/prometheus
- ./docker/prometheus/:/etc/prometheus/
expose:
- 9090
ports:
- "0.0.0.0:9090:9090/tcp"
cadvisor:
image: 'zcube/cadvisor:latest'
container_name: cadvisor
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
ports:
- '8083:8080'
alertmanager:
image: prom/alertmanager:latest
container_name: alertmanager
restart: unless-stopped
deploy:
resources:
limits:
memory: 64m
volumes:
- ./.volumes/alertmanager/:/alertmanager
- ./docker/alertmanager/:/etc/alertmanager/
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
expose:
- 9093
ports:
- "0.0.0.0:9093:9093/tcp"
alertmanager-discord:
image: lidofinance/alertmanager-discord:2.7.0
platform: linux/x86_64
container_name: alertmanager-discord
restart: unless-stopped
environment:
- WORKING_MODE=alternative
- PORT=9094
expose:
- 9094
ports:
- "0.0.0.0:9094:9094/tcp"
volumes:
- ./docker/alertmanager-discord/alertmanager-discord.yml:/etc/alertmanager-discord.yml
grafana:
image: grafana/grafana:9.5.7
sysctls:
- net.ipv6.conf.lo.disable_ipv6=0
- net.ipv6.conf.all.disable_ipv6=0
container_name: grafana
hostname: grafana.local
restart: unless-stopped
deploy:
resources:
limits:
memory: 192m
links:
- prometheus:prometheus
volumes:
- ./.volumes/grafana/:/var/lib/grafana
- ./docker/grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_PASSWORD=MYPASSWORT
- GF_USERS_ALLOW_SIGN_UP=false
- GF_SERVER_DOMAIN=locahost
- GF_SMTP_ENABLED=false
- GF_SMTP_HOST=smtp.gmail.com:587
- GF_SMTP_PASSWORD=mypassword
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=vertamedia-clickhouse-datasource
- GF_INSTALL_PLUGINS=vertamedia-clickhouse-datasource
- CLICKHOUSE_DB_HOST=http://clickhouse
- CLICKHOUSE_DB_PORT=8123
- CLICKHOUSE_DB_USER=default
- CLICKHOUSE_DB_PASSWORD=
- CLICKHOUSE_DB_NAME=default
ports:
- "8082:3000"
app:
build: ./
container_name: ethereum-validators-monitoring
restart: unless-stopped
deploy:
resources:
limits:
memory: 5g
ulimits:
nofile:
soft: 262144
hard: 262144
environment:
- WORKING_MODE=${WORKING_MODE:-finalized}
- NODE_ENV=${NODE_ENV:-development}
- DRY_RUN=${DRY_RUN:-false}
- LOG_LEVEL=${LOG_LEVEL:-info}
- LOG_FORMAT=${LOG_FORMAT:-json}
- HTTP_PORT=${HTTP_PORT:-8080}
- DB_HOST=http://clickhouse
- DB_PORT=8123
- DB_USER=default
- DB_PASSWORD=
- DB_NAME=default
- DB_MAX_RETRIES=${DB_MAX_RETRIES:-10}
- DB_MIN_BACKOFF_SEC=${DB_MIN_BACKOFF_SEC:-1}
- DB_MAX_BACKOFF_SEC=${DB_MAX_BACKOFF_SEC:-120}
- START_EPOCH=${START_EPOCH:-155000}
- ETH_NETWORK=${ETH_NETWORK}
- VALIDATOR_REGISTRY_SOURCE=${VALIDATOR_REGISTRY_SOURCE:-lido}
- VALIDATOR_REGISTRY_FILE_SOURCE_PATH=${VALIDATOR_REGISTRY_FILE_SOURCE_PATH:-./docker/validators/custom_mainnet.yaml}
- VALIDATOR_REGISTRY_LIDO_SOURCE_SQLITE_CACHE_PATH=${VALIDATOR_REGISTRY_LIDO_SOURCE_SQLITE_CACHE_PATH:-./docker/validators/lido_mainnet.db}
- VALIDATOR_USE_STUCK_KEYS_FILE=${VALIDATOR_USE_STUCK_KEYS_FILE:-false}
- VALIDATOR_STUCK_KEYS_FILE_PATH=${VALIDATOR_STUCK_KEYS_FILE_PATH:-./docker/validators/stuck_keys.yaml}
- VALIDATOR_REGISTRY_KEYSAPI_SOURCE_URLS=${VALIDATOR_REGISTRY_KEYSAPI_SOURCE_URLS}
- VALIDATOR_REGISTRY_KEYSAPI_SOURCE_RETRY_DELAY_MS=${VALIDATOR_REGISTRY_KEYSAPI_SOURCE_RETRY_DELAY_MS:-500}
- VALIDATOR_REGISTRY_KEYSAPI_SOURCE_RESPONSE_TIMEOUT=${VALIDATOR_REGISTRY_KEYSAPI_SOURCE_RESPONSE_TIMEOUT:-30000}
- VALIDATOR_REGISTRY_KEYSAPI_SOURCE_MAX_RETRIES=${VALIDATOR_REGISTRY_KEYSAPI_SOURCE_MAX_RETRIES:-2}
- EL_RPC_URLS=${EL_RPC_URLS}
- CL_API_URLS=${CL_API_URLS}
- CL_API_RETRY_DELAY_MS=${CL_API_RETRY_DELAY_MS:-500}
- CL_API_GET_RESPONSE_TIMEOUT=${CL_API_GET_RESPONSE_TIMEOUT:-15000}
- CL_API_MAX_RETRIES=${CL_API_MAX_RETRIES:-1}
- CL_API_GET_BLOCK_INFO_MAX_RETRIES=${CL_API_GET_BLOCK_INFO_MAX_RETRIES:-1}
- FETCH_INTERVAL_SLOTS=${FETCH_INTERVAL_SLOTS:-32}
- CHAIN_SLOT_TIME_SECONDS=${CHAIN_SLOT_TIME_SECONDS:-12}
- SYNC_PARTICIPATION_DISTANCE_DOWN_FROM_CHAIN_AVG=${SYNC_PARTICIPATION_DISTANCE_DOWN_FROM_CHAIN_AVG:-0}
- SYNC_PARTICIPATION_EPOCHS_LESS_THAN_CHAIN_AVG=${SYNC_PARTICIPATION_EPOCHS_LESS_THAN_CHAIN_AVG:-3}
- BAD_ATTESTATION_EPOCHS=${BAD_ATTESTATION_EPOCHS:-3}
- CRITICAL_ALERTS_ALERTMANAGER_URL=${CRITICAL_ALERTS_ALERTMANAGER_URL}
- CRITICAL_ALERTS_MIN_VAL_COUNT=${CRITICAL_ALERTS_MIN_VAL_COUNT:-100}
- CRITICAL_ALERTS_ALERTMANAGER_LABELS=${CRITICAL_ALERTS_ALERTMANAGER_LABELS:-{}}
expose:
- "${HTTP_PORT:-8080}"
ports:
- "${EXTERNAL_HTTP_PORT:-${HTTP_PORT:-8080}}:${HTTP_PORT:-8080}"
volumes:
- ./docker/validators/:/app/docker/validators
depends_on:
- clickhouse
- prometheus
networks:
default:
name: dev_validators_monitoring
driver_opts:
com.docker.network.bridge.name: dev-val-mon