compose.yaml 669 B

12345678910111213141516171819202122232425262728
  1. ---
  2. name: "Prometheus"
  3. description: "An open-source monitoring and alerting toolkit"
  4. version: "0.0.1"
  5. date: "2023-10-01"
  6. author: "Christian Lempa"
  7. tags:
  8. - prometheus
  9. - monitoring
  10. - alerting
  11. ---
  12. volumes:
  13. prometheus-data:
  14. driver: local
  15. services:
  16. prometheus:
  17. image: docker.io/prom/prometheus:v3.5.0
  18. container_name: prometheus
  19. command:
  20. - --config.file=/etc/prometheus/prometheus.yaml
  21. - --storage.tsdb.retention.time=7d
  22. - --storage.tsdb.retention.size=2GB
  23. ports:
  24. - 9090:9090
  25. volumes:
  26. - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
  27. - prometheus-data:/prometheus
  28. restart: unless-stopped