generated from lidofinance/python-base-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
82 lines (76 loc) · 1.9 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
version: "3.7"
networks:
head-watcher: {}
services:
app:
container_name: ethereum-head-watcher-mainnet
build: .
restart: unless-stopped
networks:
- head-watcher
deploy:
resources:
limits:
memory: 2g
depends_on:
- prometheus
- alertmanager
- alertmanager-discord
expose:
- 9000
environment:
- CONSENSUS_CLIENT_URI=${CONSENSUS_CLIENT_URI}
- EXECUTION_CLIENT_URI=${EXECUTION_CLIENT_URI}
- LIDO_LOCATOR_ADDRESS=${LIDO_LOCATOR_ADDRESS}
- KEYS_SOURCE=${KEYS_SOURCE}
- KEYS_API_URI=${KEYS_API_URI}
- KEYS_FILE_PATH=${KEYS_FILE_PATH}
- ALERTMANAGER_URI=${ALERTMANAGER_URI}
- LOG_LEVEL=${LOG_LEVEL}
- DRY_RUN=${DRY_RUN}
prometheus:
image: prom/prometheus:latest
sysctls:
- net.ipv6.conf.lo.disable_ipv6=0
- net.ipv6.conf.all.disable_ipv6=0
container_name: prometheus
networks:
- head-watcher
restart: unless-stopped
deploy:
resources:
limits:
memory: 256m
volumes:
- ./.volumes/prometheus/:/prometheus
- ./docker/prometheus/:/etc/prometheus/
expose:
- 9090
alertmanager:
image: prom/alertmanager:latest
container_name: alertmanager
restart: unless-stopped
networks:
- head-watcher
deploy:
resources:
limits:
memory: 64m
volumes:
- ./.volumes/alertmanager/:/alertmanager
- ./docker/alertmanager/:/etc/alertmanager/
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
expose:
- 9093
alertmanager-discord:
image: lidofinance/alertmanager-discord:2.3.0
platform: linux/x86_64
container_name: alertmanager-discord
restart: unless-stopped
networks:
- head-watcher
expose:
- 5001
volumes:
- ./docker/alertmanager-discord/alertmanager-discord.yml:/etc/alertmanager-discord.yml