compose.yaml.j2 469 B

1234567891011121314151617
  1. volumes:
  2. prometheus-data:
  3. driver: local
  4. services:
  5. prometheus:
  6. image: docker.io/prom/prometheus:v3.5.0
  7. container_name: prometheus
  8. command:
  9. - --config.file=/etc/prometheus/prometheus.yaml
  10. - --storage.tsdb.retention.time=7d
  11. - --storage.tsdb.retention.size=2GB
  12. ports:
  13. - 9090:9090
  14. volumes:
  15. - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
  16. - prometheus-data:/prometheus
  17. restart: unless-stopped