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

16 lines
366 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: prom/prometheus:v2.50.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
- ./data:/prometheus
restart: unless-stopped