forked from lidofinance/ethereum-validators-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
183 lines (174 loc) · 4.5 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
version: '3.7'
services:
clickhouse:
image: yandex/clickhouse-server
container_name: clickhouse
restart: unless-stopped
environment:
- CLICKHOUSE_USER=${DB_USER}
- CLICKHOUSE_PASSWORD=${DB_PASSWORD}
- CLICKHOUSE_DB=${DB_NAME}
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.0.9
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=${DB_HOST}
- CLICKHOUSE_DB_PORT=${DB_PORT}
- CLICKHOUSE_DB_USER=${DB_USER}
- CLICKHOUSE_DB_PASSWORD=${DB_PASSWORD}
- CLICKHOUSE_DB_NAME=${DB_NAME}
ports:
- "8082:3000"
app:
build: ./
container_name: ethereum-validators-monitoring
restart: unless-stopped
deploy:
resources:
limits:
memory: 3g
ulimits:
nofile:
soft: 262144
hard: 262144
environment:
- LOG_FORMAT=${LOG_FORMAT}
- HTTP_PORT=${HTTP_PORT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- START_EPOCH=${START_EPOCH}
- ETH_NETWORK=${ETH_NETWORK}
- VALIDATOR_REGISTRY_SOURCE=${VALIDATOR_REGISTRY_SOURCE}
- EL_RPC_URLS=${EL_RPC_URLS}
- CL_API_URLS=${CL_API_URLS}
ports:
- "${HTTP_PORT}:${HTTP_PORT}"
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