docker-compose.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. services:
  2. prometheus:
  3. image: prom/prometheus
  4. container_name: prometheus
  5. ports:
  6. - "9090:9090"
  7. volumes:
  8. - ./prometheus/:/etc/prometheus/
  9. - prometheus_data:/prometheus
  10. command:
  11. - '--config.file=/etc/prometheus/prometheus.yml'
  12. - '--storage.tsdb.path=/prometheus'
  13. networks:
  14. - monitoring_network
  15. labels:
  16. "com.helios.target": "http://localhost:9090"
  17. node-exporter:
  18. image: prom/node-exporter
  19. command:
  20. - '--web.config.file=/etc/node_exporter/config.yml'
  21. volumes:
  22. - ./config.yml:/etc/node_exporter/config.yml
  23. networks:
  24. - monitoring_network
  25. ports:
  26. - 9100:9100
  27. labels:
  28. "com.helios.target": "http://localhost:9100"
  29. alert-manager:
  30. image: prom/alertmanager
  31. volumes:
  32. - "./alertmanager.yml:/alertmanager/alertmanager.yml"
  33. networks:
  34. - monitoring_network
  35. ports:
  36. - 9093:9093
  37. labels:
  38. "com.helios.target": "http://localhost:9093"
  39. volumes:
  40. prometheus_data:
  41. networks:
  42. monitoring_network:
  43. driver: bridge