forked from open-source-labs/Docketeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (81 loc) · 2.25 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.8'
services:
db:
container_name: docketeerdb
image: docketeerxi/postgres
restart: always
ports:
- '5432:5432'
volumes:
- ./imageConfigs/postgres/docketeerdb:/var/lib/postgresql/data/
environment:
POSTGRES_DB: 'docketeer-db'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.1
container_name: cadvisor
ports:
- '8080:8080'
volumes:
- /:/rootfs:ro
- /var/run/docker.sock:/var/run/docker.sock:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /etc/machine-id:/etc/machine-id:ro
labels:
org_prometheus_starter: 'true'
org_prometheus_starter_path: '/metrics'
node-exporter:
image: docketeerxi/nodeex
container_name: node-exporter
ports:
- '9100:9100'
volumes:
#system info for linux machines
- /proc:/host/proc:ro
# also for linux
- /sys:/host/sys:ro
#root
- /:/rootfs:ro
depends_on:
- db
prometheus:
image: docketeerxi/prometheus
container_name: prometheus
ports:
- '9090:9090'
volumes:
- ./imageConfigs/prometheus/promData:/prometheus
depends_on:
- node-exporter
labels:
org_prometheus_starter: 'true'
org_prometheus_starter_port: '9090'
org_prometheus_starter_path: '/metrics'
volumes:
- ./imageConfigs/prometheus/promData:/prometheus
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- 2999:3000
environment:
GF_PATHS_CONFIG: /etc/grafana/grafana.ini
GF_AUTH_ANONYMOUS_ENABLED: 'true'
volumes:
- ./imageConfigs/grafana/data:/var/lib/grafana
- ./imageConfigs/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./imageConfigs/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./imageConfigs/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./imageConfigs/grafana/plugins:/var/lib/grafana/plugins
depends_on:
- prometheus
docketeer:
image: docketeerxi/docketeer
container_name: docketeer
ports:
- 4000:4000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: npm start