-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (54 loc) · 1.26 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
version: "3.8"
services:
prometheus:
image: prom/prometheus
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.size=1GB"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
volumes:
- ./docker/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_storage:/prometheus
# ports:
# - target: 9090
# published: 9090
deploy:
resources:
limits:
cpus: '1'
memory: 1G
grafana:
image: grafana/grafana-oss
restart: unless-stopped
volumes:
- grafana_storage:/var/lib/grafana
ports:
- target: 3000
published: 3000
deploy:
resources:
limits:
cpus: '2'
memory: 2G
exporter:
image: diegogslomp/api_exporter
restart: unless-stopped
build:
context: .
dockerfile: ./docker/Dockerfile
env_file:
- ./.env
# ports:
# - target: 8083
# published: 8083
deploy:
resources:
limits:
cpus: '1'
memory: 1G
volumes:
prometheus_storage:
grafana_storage: