-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
55 lines (48 loc) · 1.8 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
version: '2'
services:
# ==============================================================================
# prometheus
# ------------------------------------------------------------------------------
prometheus:
image: "prom/prometheus:v2.25.0"
restart: unless-stopped
networks:
- monitoring_ext
expose:
- "9090"
ports:
- "19090:9090"
volumes:
- ./prometheus/config:/etc/prometheus:ro
- ./prometheus/data:/prometheus:rw
- prometheus-docker-sd:/prometheus-docker-sd:ro
command: [
"--config.file=/etc/prometheus/prometheus.yml",
"--storage.tsdb.path=/prometheus",
"--storage.tsdb.retention.time=15d",
"--web.console.libraries=/usr/share/prometheus/console_libraries",
"--web.console.templates=/usr/share/prometheus/consoles"
]
# ==============================================================================
# prometheus-docker-sd
# ------------------------------------------------------------------------------
prometheus-docker-sd:
image: "stucky/prometheus-docker-sd:latest"
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- prometheus-docker-sd:/prometheus-docker-sd:rw
# ==============================================================================
# Volumes
# ------------------------------------------------------------------------------
volumes:
prometheus-docker-sd:
# ==============================================================================
# ==============================================================================
# Networks
# ------------------------------------------------------------------------------
networks:
monitoring_ext:
external: true
name: monitoring_ext
# ==============================================================================