-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathdocker-compose.remote.yml
More file actions
50 lines (44 loc) · 1.26 KB
/
Copy pathdocker-compose.remote.yml
File metadata and controls
50 lines (44 loc) · 1.26 KB
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
version: '3.8'
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
tag: "{{.Name}}"
x-common-labels: &default-labels
logging: "promtail"
logging_jobname: "containerlogs"
services:
loki:
volumes:
- ./configs/loki/recording-rules.yaml:/etc/loki/rules/fake/recording-rules.yml
prometheus-remote:
image: prom/prometheus:${PROMETHEUS_VERSION:-v2.42.0}
container_name: prometheus-remote
restart: unless-stopped
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--log.level=info'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=7d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--web.enable-lifecycle'
- '--web.enable-remote-write-receiver'
- '--web.external-url=http://localhost:9090'
volumes:
- ./configs/prometheus-remote/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-remote-data:/prometheus
ports:
- 9091:9090
networks:
- monitoring
labels:
<<: *default-labels
logging: *default-logging
volumes:
prometheus-remote-data: {}
networks:
monitoring:
name: monitoring