Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- version: '2.4'
- volumes:
- elasticsearch:
- services:
- cassandra:
- image: cassandra
- ports:
- - 9042:9042
- zookeeper:
- image: confluentinc/cp-zookeeper:5.3.0
- environment:
- ZOOKEEPER_CLIENT_PORT: 2181
- ZOOKEEPER_TICK_TIME: 2000
- kafka: # https://github.com/confluentinc/schema-registry/issues/689#issuecomment-416315907
- image: confluentinc/cp-enterprise-kafka:5.3.0
- depends_on:
- - zookeeper
- ports:
- - 9092:9092
- environment:
- KAFKA_BROKER_ID: 1
- KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
- KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
- KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
- elasticsearch:
- build:
- context: ../../elk/elasticsearch/
- args:
- ELK_VERSION: $ELK_VERSION
- volumes:
- - type: bind
- source: ../../elk/elasticsearch/config/elasticsearch.yml
- target: /usr/share/elasticsearch/config/elasticsearch.yml
- read_only: true
- - type: volume
- source: elasticsearch
- target: /usr/share/elasticsearch/data
- ports:
- - "9200:9200"
- - "9300:9300"
- environment:
- ES_JAVA_OPTS: "-Xmx256m -Xms256m"
- ELASTIC_PASSWORD: changeme
- logstash:
- build:
- context: ../../elk/logstash/
- args:
- ELK_VERSION: $ELK_VERSION
- volumes:
- - type: bind
- source: ../../elk/logstash/config/logstash.yml
- target: /usr/share/logstash/config/logstash.yml
- read_only: true
- - type: bind
- source: ../../elk/logstash/pipeline
- target: /usr/share/logstash/pipeline
- read_only: true
- ports:
- - "5000:5000"
- - "9600:9600"
- environment:
- LS_JAVA_OPTS: "-Xmx256m -Xms256m"
- depends_on:
- - elasticsearch
- kibana:
- build:
- context: ../../elk/kibana/
- args:
- ELK_VERSION: $ELK_VERSION
- volumes:
- - type: bind
- source: ../../elk/kibana/config/kibana.yml
- target: /usr/share/kibana/config/kibana.yml
- read_only: true
- ports:
- - "5601:5601"
- depends_on:
- - elasticsearch
- seed:
- image: pcs/pcs:1.0
- ports:
- - '2551:2551'
- - '8080:8080'
- environment:
- CLUSTER_PORT: 2551
- CLUSTER_IP: 0.0.0.0
- CLUSTER_SEED_IP: 0.0.0.0
- SEED_NODES: akka://ClusterPCS@0.0.0.0:2551
- KAFKA_BROKERS_LIST: 0.0.0.0:9092
- CASSANDRA_CONTACT_POINTS: 0.0.0.0:9042
- LOGSTASH: 0.0.0.0:5000
- network_mode: host
- depends_on:
- - kafka
- - cassandra
- - logstash
- node1:
- image: pcs/pcs:1.0
- ports:
- - '2552:2552'
- - '8081:8080'
- environment:
- CLUSTER_PORT: 2552
- CLUSTER_IP: 0.0.0.0
- CLUSTER_SEED_IP: 0.0.0.0
- KAFKA_BROKERS_LIST: 0.0.0.0:9092
- SEED_NODES: akka://ClusterPCS@0.0.0.0:2551
- CASSANDRA_CONTACT_POINTS: 0.0.0.0:9042
- LOGSTASH: 0.0.0.0:5000
- network_mode: host
- depends_on:
- - kafka
- - cassandra
- - logstash
- node2:
- image: pcs/pcs:1.0
- ports:
- - '2553:2553'
- - '8082:8080'
- environment:
- CLUSTER_PORT: 2553
- CLUSTER_IP: 0.0.0.0
- CLUSTER_SEED_IP: 0.0.0.0
- KAFKA_BROKERS_LIST: 0.0.0.0:9092
- SEED_NODES: akka://ClusterPCS@0.0.0.0:2551
- CASSANDRA_CONTACT_POINTS: 0.0.0.0:9042
- LOGSTASH: 0.0.0.0:5000
- network_mode: host
- depends_on:
- - kafka
- - cassandra
- - logstash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement