-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 942 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 942 Bytes
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
version: '3.4'
services:
prometheus:
image: "dejanualex/prometheus:${PROMETHEUS_TAG}"
hostname: prometheus
container_name: localprometheus
command:
- '--web.enable-lifecycle'
ports:
- "9090:9090"
grafana:
image: "grafana/grafana:${GRAFANA_TAG}"
container_name: localgrafana
volumes:
- ./graf_volume:/etc/grafana/provisioning/datasources/
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
ports:
- "3000:3000"
links:
- prometheus
scrapeapp:
image: dejanualex/go_promexporter:${EXPORTER_TAG}
hostname: goexporter
# build:
# context: ./go_exporter
container_name: localgoexporter
ports:
- "5000:5000"
links:
- prometheus
mynode:
image: prom/node-exporter
hostname: nodeexporter
ports:
- "9100:9100"
links:
- prometheus