compose.yaml 384 B

123456789101112131415
  1. ---
  2. volumes:
  3. prometheus-data:
  4. driver: local
  5. services:
  6. prometheus:
  7. image: docker.io/prom/prometheus:v3.2.1
  8. container_name: prometheus
  9. ports:
  10. - 9090:9090
  11. command: "--config.file=/etc/prometheus/prometheus.yaml"
  12. volumes:
  13. - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
  14. - prometheus-data:/prometheus
  15. restart: unless-stopped