christianlempa-boilerplates/docker-compose/prometheus/docker-compose.yaml

16 lines
385 B
YAML
Raw Normal View History

2023-05-25 14:26:13 +02:00
---
2021-12-30 11:46:21 +01:00
volumes:
prometheus-data:
driver: local
services:
prometheus:
image: docker.io/prom/prometheus:v2.51.2
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