2021-11-29 03:35:32 +00:00
|
|
|
version: "3.8"
|
2020-01-15 10:42:15 +00:00
|
|
|
services:
|
|
|
|
prometheus:
|
2021-11-29 03:35:32 +00:00
|
|
|
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'
|
2020-01-15 10:42:15 +00:00
|
|
|
ports:
|
|
|
|
- "9090:9090"
|
|
|
|
volumes:
|
2021-11-29 03:35:32 +00:00
|
|
|
- ./data/etc:/etc/prometheus
|
|
|
|
- ./data/var:/var/lib/prometheus
|
2020-01-15 10:42:15 +00:00
|
|
|
restart: unless-stopped
|