You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

2 years ago
  1. version: '3'
  2. services:
  3. prometheus:
  4. image: prom/prometheus
  5. container_name: prometheus
  6. volumes:
  7. - /febs/prometheus/:/etc/prometheus/
  8. ports:
  9. - 8403:9090
  10. restart: on-failure
  11. node_exporter:
  12. image: prom/node-exporter
  13. container_name: node_exporter
  14. ports:
  15. - 8405:9100
  16. redis_exporter:
  17. image: oliver006/redis_exporter
  18. container_name: redis_exporter
  19. command:
  20. - '--redis.addr=redis://ip:port'
  21. - '--redis.password=password'
  22. ports:
  23. - 8408:9121
  24. restart: on-failure
  25. mysql_exporter:
  26. image: prom/mysqld-exporter
  27. container_name: mysql_exporter
  28. environment:
  29. - DATA_SOURCE_NAME=username:password@(ip:port)/
  30. ports:
  31. - 8409:9104
  32. cadvisor:
  33. image: google/cadvisor
  34. container_name: cadvisor
  35. volumes:
  36. - /:/rootfs:ro
  37. - /var/run:/var/run:rw
  38. - /sys:/sys:ro
  39. - /var/lib/docker/:/var/lib/docker:ro
  40. ports:
  41. - 8407:8080
  42. alertmanager:
  43. image: prom/alertmanager
  44. container_name: alertmanager
  45. volumes:
  46. - /febs/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
  47. ports:
  48. - 8406:9093
  49. grafana:
  50. image: grafana/grafana
  51. container_name: grafana
  52. ports:
  53. - 8404:3000