- ---
- volumes:
- prometheus-data:
- driver: local
- services:
- prometheus:
- image: prom/prometheus:v2.50.1
- container_name: prometheus
- ports:
- - 9090:9090
- command: "--config.file=/etc/prometheus/prometheus.yaml"
- volumes:
- - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
- - ./data:/prometheus
- restart: unless-stopped
|