20 lines
509 B
YAML
20 lines
509 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus
|
|
volumes:
|
|
- ./monitoring/prometheus/:/etc/prometheus/
|
|
- prometheus_data:/prometheus
|
|
command:
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
- "--storage.tsdb.path=/prometheus"
|
|
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
|
- "--web.console.templates=/usr/share/prometheus/consoles"
|
|
- "--web.enable-lifecycle"
|
|
ports:
|
|
- 9090:9090
|
|
|
|
volumes:
|
|
prometheus_data: {}
|