forked from yunlzheng/prometheus-book
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
69 lines (69 loc) · 1.71 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
version: '2'
services:
consul:
image: consul
ports:
- 8400:8400
- 8500:8500
- 8600:53/udp
command: agent -server -client=0.0.0.0 -dev -node=node0 -bootstrap-expect=1 -data-dir=/tmp/consul
labels:
SERVICE_IGNORE: 'true'
registrator:
image: gliderlabs/registrator
depends_on:
- consul
volumes:
- /var/run:/tmp:rw
command: consul://consul:8500
prometheus:
image: quay.io/prometheus/prometheus
ports:
- 9090:9090
volumes:
# - ./prometheus/prometheus_static.yml:/etc/prometheus/prometheus.yml
- ./prometheus/prometheus_consul.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- ~/grafana/:/var/lib/grafana:rw
node_exporter:
image: quay.io/prometheus/node-exporter
pid: "host"
ports:
- 9100:9100
labels:
SERVICE_TAGS: "development"
SERVICE_NAME: "node_exporter"
SERVICE_TAG_IO_PROMETHEUS_SCRAPED: "true"
docker_exporter:
image: wisecity/docker-metrics-exporter
volumes:
- /var/lib/docker/:/var/lib/docker:ro
- /var/run:/var/run:rw
labels:
SERVICE_TAGS: "production"
# cadvisor:
# image: google/cadvisor:latest
# ports:
# - 8080:8080
# volumes:
# - /:/rootfs:ro
# - /var/run:/var/run:rw
# - /var/lib/docker/:/var/lib/docker:ro
# labels:
# SERVICE_TAGS: "production,scraped"
jenkins:
image: jenkins/jenkins
ports:
- 8080:8080
- 50000:50000
volumes:
- ~/jenkins_home/:/var/jenkins_home/:rw
labels:
SERVICE_NAME: "jenkins"
SERVICE_8080_NAME: "jenkins"
SERVICE_8080_PORT: "8080"
SERVICE_50000_IGNORE: "true"