-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
50 lines (48 loc) · 1.16 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
version: "2.2"
networks:
sandbox:
driver: bridge
services:
prometheus:
image: prom/prometheus:v2.28.1
container_name: prometheus
volumes:
- ./data/prometheus:/etc/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/etc/prometheus/tmp"
- "--web.enable-lifecycle"
restart: always
ports:
- 9090:9090
networks:
- sandbox
alertmanger:
image: prom/alertmanager:v0.22.0
container_name: alertmanager
volumes:
- ./data/alertmanager:/etc/alertmanager
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
- '--storage.path=/etc/alertmanager/tmp'
- '--log.level=info'
restart: always
ports:
- 9093:9093
- 9094:9094
networks:
- sandbox
prombox:
image: prombox
container_name: prombox
restart: unless-stopped
environment:
- PROMETHEUS_ADDRESS=http://prometheus:9090
- PROMETHEUS_FRAME_ADDRESS=http://localhost:9090
- PROMETHEUS_CONFIG=/etc/data/prometheus/prometheus.yml
ports:
- 3000:3000
networks:
- sandbox
volumes:
- ./data:/etc/data:rw