2023-05-25 14:26:13 +02:00
|
|
|
---
|
2021-12-30 11:46:21 +01:00
|
|
|
volumes:
|
|
|
|
prometheus-data:
|
|
|
|
driver: local
|
|
|
|
services:
|
|
|
|
prometheus:
|
2024-08-27 17:37:11 +02:00
|
|
|
image: docker.io/prom/prometheus:v2.54.1
|
2021-12-30 11:46:21 +01:00
|
|
|
container_name: prometheus
|
|
|
|
ports:
|
2023-05-25 14:26:13 +02:00
|
|
|
- 9090:9090
|
2023-09-13 12:04:10 +02:00
|
|
|
command: "--config.file=/etc/prometheus/prometheus.yaml"
|
2021-12-30 11:46:21 +01:00
|
|
|
volumes:
|
2023-09-13 12:04:10 +02:00
|
|
|
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
|
2024-04-05 21:13:29 +02:00
|
|
|
- prometheus-data:/prometheus
|
2023-09-13 12:04:10 +02:00
|
|
|
restart: unless-stopped
|