version: "3.9"

networks:
  hxki-internal:
    external: true

services:
  prometheus:
    image: prom/prometheus:latest
    container_name: hxki-prometheus
    restart: unless-stopped
    command:
      - --config.file=/etc/prometheus/prometheus.yml
      - --storage.tsdb.path=/prometheus
      - --web.enable-lifecycle
    volumes:
      - /opt/hx-ki/monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - /opt/hx-ki/monitoring/prometheus/rules:/etc/prometheus/rules:ro
      - /opt/hx-ki/monitoring/prometheus/data:/prometheus
    networks:
      - hxki-internal
