Guest User

Untitled

a guest
Oct 21st, 2019
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. version: '2.4'
  3.  
  4. volumes:
  5. elasticsearch:
  6.  
  7. services:
  8. cassandra:
  9. image: cassandra
  10. ports:
  11. - 9042:9042
  12.  
  13. zookeeper:
  14. image: confluentinc/cp-zookeeper:5.3.0
  15. environment:
  16. ZOOKEEPER_CLIENT_PORT: 2181
  17. ZOOKEEPER_TICK_TIME: 2000
  18.  
  19. kafka: # https://github.com/confluentinc/schema-registry/issues/689#issuecomment-416315907
  20. image: confluentinc/cp-enterprise-kafka:5.3.0
  21. depends_on:
  22. - zookeeper
  23. ports:
  24. - 9092:9092
  25. environment:
  26. KAFKA_BROKER_ID: 1
  27. KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  28. KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
  29. KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
  30. KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
  31. KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
  32. KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
  33. KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
  34.  
  35. elasticsearch:
  36. build:
  37. context: ../../elk/elasticsearch/
  38. args:
  39. ELK_VERSION: $ELK_VERSION
  40. volumes:
  41. - type: bind
  42. source: ../../elk/elasticsearch/config/elasticsearch.yml
  43. target: /usr/share/elasticsearch/config/elasticsearch.yml
  44. read_only: true
  45. - type: volume
  46. source: elasticsearch
  47. target: /usr/share/elasticsearch/data
  48. ports:
  49. - "9200:9200"
  50. - "9300:9300"
  51. environment:
  52. ES_JAVA_OPTS: "-Xmx256m -Xms256m"
  53. ELASTIC_PASSWORD: changeme
  54.  
  55. logstash:
  56. build:
  57. context: ../../elk/logstash/
  58. args:
  59. ELK_VERSION: $ELK_VERSION
  60. volumes:
  61. - type: bind
  62. source: ../../elk/logstash/config/logstash.yml
  63. target: /usr/share/logstash/config/logstash.yml
  64. read_only: true
  65. - type: bind
  66. source: ../../elk/logstash/pipeline
  67. target: /usr/share/logstash/pipeline
  68. read_only: true
  69. ports:
  70. - "5000:5000"
  71. - "9600:9600"
  72. environment:
  73. LS_JAVA_OPTS: "-Xmx256m -Xms256m"
  74. depends_on:
  75. - elasticsearch
  76.  
  77. kibana:
  78. build:
  79. context: ../../elk/kibana/
  80. args:
  81. ELK_VERSION: $ELK_VERSION
  82. volumes:
  83. - type: bind
  84. source: ../../elk/kibana/config/kibana.yml
  85. target: /usr/share/kibana/config/kibana.yml
  86. read_only: true
  87. ports:
  88. - "5601:5601"
  89. depends_on:
  90. - elasticsearch
  91.  
  92. seed:
  93. image: pcs/pcs:1.0
  94. ports:
  95. - '2551:2551'
  96. - '8080:8080'
  97. environment:
  98. CLUSTER_PORT: 2551
  99. CLUSTER_IP: 0.0.0.0
  100. CLUSTER_SEED_IP: 0.0.0.0
  101. SEED_NODES: akka://ClusterPCS@0.0.0.0:2551
  102. KAFKA_BROKERS_LIST: 0.0.0.0:9092
  103. CASSANDRA_CONTACT_POINTS: 0.0.0.0:9042
  104. LOGSTASH: 0.0.0.0:5000
  105. network_mode: host
  106. depends_on:
  107. - kafka
  108. - cassandra
  109. - logstash
  110.  
  111. node1:
  112. image: pcs/pcs:1.0
  113. ports:
  114. - '2552:2552'
  115. - '8081:8080'
  116. environment:
  117. CLUSTER_PORT: 2552
  118. CLUSTER_IP: 0.0.0.0
  119. CLUSTER_SEED_IP: 0.0.0.0
  120. KAFKA_BROKERS_LIST: 0.0.0.0:9092
  121. SEED_NODES: akka://ClusterPCS@0.0.0.0:2551
  122. CASSANDRA_CONTACT_POINTS: 0.0.0.0:9042
  123. LOGSTASH: 0.0.0.0:5000
  124. network_mode: host
  125. depends_on:
  126. - kafka
  127. - cassandra
  128. - logstash
  129.  
  130. node2:
  131. image: pcs/pcs:1.0
  132. ports:
  133. - '2553:2553'
  134. - '8082:8080'
  135. environment:
  136. CLUSTER_PORT: 2553
  137. CLUSTER_IP: 0.0.0.0
  138. CLUSTER_SEED_IP: 0.0.0.0
  139. KAFKA_BROKERS_LIST: 0.0.0.0:9092
  140. SEED_NODES: akka://ClusterPCS@0.0.0.0:2551
  141. CASSANDRA_CONTACT_POINTS: 0.0.0.0:9042
  142. LOGSTASH: 0.0.0.0:5000
  143. network_mode: host
  144. depends_on:
  145. - kafka
  146. - cassandra
  147. - logstash
RAW Paste Data