-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
57 lines (54 loc) · 1.4 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
version: '3.4'
x-default-logging: &default-logging
driver: "json-file"
options:
max-size: "300m"
max-file: '3'
networks:
monitoring: null
volumes:
prometheus-data: null
grafana-data: null
services:
monitoring:
container_name: tonstatus-monitoring
build:
context: .
dockerfile: Dockerfile
image: monitoring:latest
env_file:
- .env
restart: unless-stopped
logging: *default-logging
networks:
- monitoring
prometheus:
container_name: tonstatus-prometheus
image: prom/prometheus
restart: unless-stopped
logging: *default-logging
networks:
- monitoring
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=1y'
- '--web.enable-lifecycle'
volumes:
- prometheus-data:/prometheus
- ./prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
container_name: tonstatus-grafana
image: grafana/grafana
restart: unless-stopped
logging: *default-logging
networks:
- monitoring
volumes:
- grafana-data:/var/lib/grafana
- ./grafana-provisioning:/etc/grafana/provisioning
- ./grafana.ini:/etc/grafana/grafana.ini
ports:
- "127.0.0.1:3000:3000"