commit 1f608d644c4eefa51e2f7ba578905bbfb4ee91df Author: Jens Beckmann Date: Tue Jul 14 20:27:36 2026 +0000 docker-compose.yaml hinzugefügt diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..5b6b2c6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,27 @@ +version: '3.8' +services: + prometheus: + image: prom/prometheus:latest + container_name: prometheus + ports: + - "9090:9090" + volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml + - prometheus_data:/prometheus + command: + - '--config.file=/etc/prometheus/prometheus.yml' + - '--storage.tsdb.path=/prometheus' + - '--web.console.libraries=/etc/prometheus/console_libraries' + - '--web.console.templates=/etc/prometheus/consoles' + - '--storage.tsdb.retention.time=24h' + restart: unless-stopped + node-exporter: + image: prom/node-exporter:latest + container_name: node-exporter + ports: + - "9100:9100" + restart: unless-stopped + +volumes: + prometheus_data: /mnt/docker/prometheus + \ No newline at end of file