mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
33 lines
900 B
YAML
33 lines
900 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
|
|
prometheus:
|
|
image: prom/prometheus:v2.31.1
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/var/lib/prometheus"
|
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
|
- "--web.external-url=http://127.0.0.1:9090"
|
|
- "--storage.tsdb.retention.time=1y"
|
|
ports:
|
|
- "9090:9090"
|
|
volumes:
|
|
- ./data/etc:/etc/prometheus
|
|
- ./data/var:/var/lib/prometheus
|
|
restart: unless-stopped
|
|
|
|
graphite:
|
|
image: prom/graphite-exporter
|
|
command:
|
|
- "--graphite.mapping-config=/etc/prometheus/graphite-mapping.yaml"
|
|
- "--graphite.mapping-strict-match"
|
|
ports:
|
|
- "9108:9108"
|
|
- "9109:9109"
|
|
- "9109:9109/udp"
|
|
volumes:
|
|
- ./data/etc:/etc/prometheus
|
|
restart: unless-stopped
|