diff --git a/inventory/com1/config/docker-compose.monitoring.yml b/inventory/com1/config/docker-compose.monitoring.yml new file mode 100644 index 0000000..ddad034 --- /dev/null +++ b/inventory/com1/config/docker-compose.monitoring.yml @@ -0,0 +1,21 @@ +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