--- name: "Prometheus" description: "An open-source monitoring and alerting toolkit" version: "0.0.1" date: "2023-10-01" author: "Christian Lempa" tags: - prometheus - monitoring - alerting --- volumes: prometheus-data: driver: local services: prometheus: image: docker.io/prom/prometheus:v3.5.0 container_name: prometheus command: - --config.file=/etc/prometheus/prometheus.yaml - --storage.tsdb.retention.time=7d - --storage.tsdb.retention.size=2GB ports: - 9090:9090 volumes: - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro - prometheus-data:/prometheus restart: unless-stopped