Advertisement
G0nz0uk

dockcompv1

Nov 8th, 2024 (edited)
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. services:
  2. prometheus:
  3. image: prom/prometheus:latest
  4. container_name: prometheus
  5. restart: unless-stopped
  6. volumes:
  7. - prometheus-etc:/etc/prometheus/
  8. - prometheus-data:/prometheus
  9. command:
  10. - '--config.file=/etc/prometheus/prometheus.yml'
  11. - '--storage.tsdb.path=/prometheus'
  12. - '--web.external-url=http://alertmanager:9093'
  13. - '--web.enable-remote-write-receiver'
  14. expose:
  15. - 9090
  16. ports:
  17. - 9090:9090
  18. networks:
  19. - monitoring
  20.  
  21. loki:
  22. image: grafana/loki:latest
  23. ports:
  24. - "3100:3100"
  25. - "9096:9096"
  26. volumes:
  27. - loki-etc:/etc/loki/
  28. command: -config.file=/etc/loki/local-config.yml
  29. networks:
  30. - monitoring
  31.  
  32. blackbox_exporter:
  33. image: prom/blackbox-exporter:latest
  34. container_name: blackbox
  35. restart: unless-stopped
  36. ports:
  37. - 9115:9115
  38. expose:
  39. - 9115
  40. volumes:
  41. - blackbox-etc:/etc/blackbox:ro
  42. command:
  43. - '--config.file=/etc/blackbox/blackbox.yml'
  44. networks:
  45. - monitoring
  46.  
  47. alloy:
  48. image: grafana/alloy:latest
  49. volumes:
  50. - /opt/mydocker/config/config.alloy:/etc/alloy/config.alloy
  51. ports:
  52. - 12345:12345
  53. - 601:601
  54. - 51893:51893
  55. command: run --server.http.listen-addr=0.0.0.0:12345
  56. --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
  57. depends_on:
  58. - loki
  59. networks:
  60. - monitoring
  61.  
  62. networks:
  63. monitoring:
  64. driver: bridge
  65.  
  66. volumes:
  67. prometheus-etc:
  68. external: true
  69. prometheus-data:
  70. external: true
  71. blackbox-etc:
  72. external: true
  73. loki-etc:
  74. external: true
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement