SHARE
TWEET

Untitled

a guest Feb 27th, 2020 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2.2'
  2. services:
  3.   es01:
  4.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  5.     container_name: es01
  6.     environment:
  7.       - node.name=es01
  8.       - cluster.name=es-cluster
  9.       - discovery.seed_hosts=es02,es03,es04,es05,es06,es07
  10.       - cluster.initial_master_nodes=es01,es02
  11.       - bootstrap.memory_lock=true
  12.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  13.       - node.master=true
  14.       - node.voting_only=false
  15.       - node.data=false
  16.       - node.ingest=false
  17.       - cluster.remote.connect=false
  18.       - ELASTIC_PASSWORD=password1
  19.       - xpack.license.self_generated.type=trial
  20.       - xpack.security.enabled=true
  21.       - xpack.security.http.ssl.enabled=true
  22.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es01/es01.key
  23.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  24.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es01/es01.crt
  25.       - xpack.security.transport.ssl.enabled=true
  26.       - xpack.security.transport.ssl.verification_mode=certificate
  27.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  28.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es01/es01.crt
  29.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es01/es01.key
  30.       - path.repo=/repositories
  31.     ulimits:
  32.       memlock:
  33.         soft: -1
  34.         hard: -1
  35.     volumes:
  36.       - ./data/01:/usr/share/elasticsearch/data
  37.       - ./certs:/usr/share/elasticsearch/config/certificates
  38.       - ./repositories:/repositories
  39.     networks:
  40.       - elastic
  41.     external_links:
  42.       - es01:es01
  43.       - es02:es02
  44.       - es03:es03
  45.       - es04:es04
  46.       - es05:es05
  47.       - es06:es06
  48.       - es07:es07
  49.   es02:
  50.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  51.     container_name: es02
  52.     environment:
  53.       - node.name=es02
  54.       - cluster.name=es-cluster
  55.       - discovery.seed_hosts=es01,es03,es04,es05,es06,es07
  56.       - cluster.initial_master_nodes=es01,es02
  57.       - bootstrap.memory_lock=true
  58.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  59.       - node.master=true
  60.       - node.voting_only=false
  61.       - node.data=false
  62.       - node.ingest=false
  63.       - cluster.remote.connect=false
  64.       - ELASTIC_PASSWORD=password1
  65.       - xpack.license.self_generated.type=trial
  66.       - xpack.security.enabled=true
  67.       - xpack.security.http.ssl.enabled=true
  68.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es02/es02.key
  69.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  70.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es02/es02.crt
  71.       - xpack.security.transport.ssl.enabled=true
  72.       - xpack.security.transport.ssl.verification_mode=certificate
  73.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  74.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es02/es02.crt
  75.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es02/es02.key
  76.       - path.repo=/repositories
  77.     ulimits:
  78.       memlock:
  79.         soft: -1
  80.         hard: -1
  81.     volumes:
  82.       - ./data/02:/usr/share/elasticsearch/data
  83.       - ./certs:/usr/share/elasticsearch/config/certificates
  84.       - ./repositories:/repositories
  85.     networks:
  86.       - elastic
  87.     external_links:
  88.       - es01:es01
  89.       - es02:es02
  90.       - es03:es03
  91.       - es04:es04
  92.       - es05:es05
  93.       - es06:es06
  94.       - es07:es07
  95.   es03:
  96.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  97.     container_name: es03
  98.     environment:
  99.       - node.name=es03
  100.       - cluster.name=es-cluster
  101.       - discovery.seed_hosts=es01,es02,es04,es05,es06,es07
  102.       - cluster.initial_master_nodes=es01,es02
  103.       - bootstrap.memory_lock=true
  104.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  105.       - node.master=true
  106.       - node.voting_only=true
  107.       - node.data=true
  108.       - node.ingest=false
  109.       - cluster.remote.connect=false
  110.       - ELASTIC_PASSWORD=password1
  111.       - xpack.license.self_generated.type=trial
  112.       - xpack.security.enabled=true
  113.       - xpack.security.http.ssl.enabled=true
  114.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es03/es03.key
  115.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  116.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es03/es03.crt
  117.       - xpack.security.transport.ssl.enabled=true
  118.       - xpack.security.transport.ssl.verification_mode=certificate
  119.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  120.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es03/es03.crt
  121.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es03/es03.key
  122.       - path.repo=/repositories
  123.     ulimits:
  124.       memlock:
  125.         soft: -1
  126.         hard: -1
  127.     volumes:
  128.       - ./data/03:/usr/share/elasticsearch/data
  129.       - ./certs:/usr/share/elasticsearch/config/certificates
  130.       - ./repositories:/repositories
  131.     networks:
  132.       - elastic
  133.     external_links:
  134.       - es01:es01
  135.       - es02:es02
  136.       - es03:es03
  137.       - es04:es04
  138.       - es05:es05
  139.       - es06:es06
  140.       - es07:es07
  141.   es04:
  142.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  143.     container_name: es04
  144.     environment:
  145.       - node.name=es04
  146.       - cluster.name=es-cluster
  147.       - discovery.seed_hosts=es01,es02,es03,es05,es06,es07
  148.       - cluster.initial_master_nodes=es01,es02
  149.       - bootstrap.memory_lock=true
  150.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  151.       - node.master=false
  152.       - node.voting_only=false
  153.       - node.data=true
  154.       - node.ingest=false
  155.       - cluster.remote.connect=false
  156.       - ELASTIC_PASSWORD=password1
  157.       - xpack.license.self_generated.type=trial
  158.       - xpack.security.enabled=true
  159.       - xpack.security.http.ssl.enabled=true
  160.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es04/es04.key
  161.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  162.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es04/es04.crt
  163.       - xpack.security.transport.ssl.enabled=true
  164.       - xpack.security.transport.ssl.verification_mode=certificate
  165.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  166.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es04/es04.crt
  167.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es04/es04.key
  168.       - path.repo=/repositories
  169.     ulimits:
  170.       memlock:
  171.         soft: -1
  172.         hard: -1
  173.     volumes:
  174.       - ./data/04:/usr/share/elasticsearch/data
  175.       - ./certs:/usr/share/elasticsearch/config/certificates
  176.       - ./repositories:/repositories
  177.     networks:
  178.       - elastic
  179.     external_links:
  180.       - es01:es01
  181.       - es02:es02
  182.       - es03:es03
  183.       - es04:es04
  184.       - es05:es05
  185.       - es06:es06
  186.       - es07:es07
  187.   es05:
  188.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  189.     container_name: es05
  190.     environment:
  191.       - node.name=es05
  192.       - cluster.name=es-cluster
  193.       - discovery.seed_hosts=es01,es02,es03,es04,es06,es07
  194.       - cluster.initial_master_nodes=es01,es02
  195.       - bootstrap.memory_lock=true
  196.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  197.       - node.master=false
  198.       - node.voting_only=false
  199.       - node.data=false
  200.       - node.ingest=true
  201.       - cluster.remote.connect=false
  202.       - ELASTIC_PASSWORD=password1
  203.       - xpack.license.self_generated.type=trial
  204.       - xpack.security.enabled=true
  205.       - xpack.security.http.ssl.enabled=true
  206.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es05/es05.key
  207.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  208.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es05/es05.crt
  209.       - xpack.security.transport.ssl.enabled=true
  210.       - xpack.security.transport.ssl.verification_mode=certificate
  211.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  212.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es05/es05.crt
  213.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es05/es05.key
  214.     ulimits:
  215.       memlock:
  216.         soft: -1
  217.         hard: -1
  218.     volumes:
  219.       - ./data/05:/usr/share/elasticsearch/data
  220.       - ./certs:/usr/share/elasticsearch/config/certificates
  221.     networks:
  222.       - elastic
  223.     external_links:
  224.       - es01:es01
  225.       - es02:es02
  226.       - es03:es03
  227.       - es04:es04
  228.       - es05:es05
  229.       - es06:es06
  230.       - es07:es07
  231.   es06:
  232.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  233.     container_name: es06
  234.     environment:
  235.       - node.name=es06
  236.       - cluster.name=es-cluster
  237.       - discovery.seed_hosts=es01,es02,es03,es04,es05,es07
  238.       - cluster.initial_master_nodes=es01,es02
  239.       - bootstrap.memory_lock=true
  240.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  241.       - node.master=false
  242.       - node.voting_only=false
  243.       - node.data=false
  244.       - node.ingest=false
  245.       - cluster.remote.connect=false
  246.       - ELASTIC_PASSWORD=password1
  247.       - xpack.license.self_generated.type=trial
  248.       - xpack.security.enabled=true
  249.       - xpack.security.http.ssl.enabled=true
  250.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es06/es06.key
  251.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  252.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es06/es06.crt
  253.       - xpack.security.transport.ssl.enabled=true
  254.       - xpack.security.transport.ssl.verification_mode=certificate
  255.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  256.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es06/es06.crt
  257.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es06/es06.key
  258.       - transport.bind_host=_eth0_
  259.     ulimits:
  260.       memlock:
  261.         soft: -1
  262.         hard: -1
  263.     volumes:
  264.       - ./data/06:/usr/share/elasticsearch/data
  265.       - ./certs:/usr/share/elasticsearch/config/certificates
  266.     networks:
  267.       - elastic
  268.       - frontal
  269.     external_links:
  270.       - es01:es01
  271.       - es02:es02
  272.       - es03:es03
  273.       - es04:es04
  274.       - es05:es05
  275.       - es06:es06
  276.       - es07:es07
  277.   es07:
  278.     image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
  279.     container_name: es07
  280.     environment:
  281.       - node.name=es07
  282.       - cluster.name=es-cluster
  283.       - discovery.seed_hosts=es01,es02,es03,es04,es05,es06
  284.       - cluster.initial_master_nodes=es01,es02
  285.       - bootstrap.memory_lock=true
  286.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  287.       - node.master=false
  288.       - node.voting_only=false
  289.       - node.data=false
  290.       - node.ingest=false
  291.       - cluster.remote.connect=false
  292.       - ELASTIC_PASSWORD=password1
  293.       - xpack.license.self_generated.type=trial
  294.       - xpack.security.enabled=true
  295.       - xpack.security.http.ssl.enabled=true
  296.       - xpack.security.http.ssl.key=/usr/share/elasticsearch/config/certificates/es07/es07.key
  297.       - xpack.security.http.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  298.       - xpack.security.http.ssl.certificate=/usr/share/elasticsearch/config/certificates/es07/es07.crt
  299.       - xpack.security.transport.ssl.enabled=true
  300.       - xpack.security.transport.ssl.verification_mode=certificate
  301.       - xpack.security.transport.ssl.certificate_authorities=/usr/share/elasticsearch/config/certificates/ca/ca.crt
  302.       - xpack.security.transport.ssl.certificate=/usr/share/elasticsearch/config/certificates/es07/es07.crt
  303.       - xpack.security.transport.ssl.key=/usr/share/elasticsearch/config/certificates/es07/es07.key
  304.       - transport.bind_host=_eth0_
  305.     ulimits:
  306.       memlock:
  307.         soft: -1
  308.         hard: -1
  309.     volumes:
  310.       - ./data/07:/usr/share/elasticsearch/data
  311.       - ./certs:/usr/share/elasticsearch/config/certificates
  312.     networks:
  313.       - elastic
  314.       - frontal
  315.     external_links:
  316.       - es01:es01
  317.       - es02:es02
  318.       - es03:es03
  319.       - es04:es04
  320.       - es05:es05
  321.       - es06:es06
  322.       - es07:es07
  323.  
  324.   cerebro:
  325.     image: lmenezes/cerebro:0.8.5
  326.     container_name: cerebro
  327.     ports:
  328.       - "9000:9000"
  329.     volumes:
  330.       - ./cerebro/application.conf:/opt/cerebro/conf/application.conf
  331.       - ./certs/ca:/opt/cerebro/conf/ca
  332.     networks:
  333.       - frontal
  334.     external_links:
  335.       - es06:elasticsearch6
  336.       - es07:elasticsearch7
  337.  
  338.   kibana:
  339.     image: docker.elastic.co/kibana/kibana:7.5.2
  340.     container_name: kibana
  341.     environment:
  342.       - SERVER_NAME=kibana
  343.       - SERVER_HOST="0"
  344.       - SERVER_SSL_ENABLED=true
  345.       - SERVER_SSL_CERTIFICATE=/etc/kibana/config/certs/kibana/kibana.crt
  346.       - SERVER_SSL_KEY=/etc/kibana/config/certs/kibana/kibana.key
  347.       - ELASTICSEARCH_HOSTS=https://elasticsearch6:9200
  348.       - ELASTICSEARCH_USERNAME=elastic
  349.       - ELASTICSEARCH_PASSWORD=password1
  350.       - ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=/etc/kibana/config/certs/ca/ca.crt
  351.     ports:
  352.       - 5601:5601
  353.     volumes:
  354.       - ./certs:/etc/kibana/config/certs
  355.     networks:
  356.       - frontal
  357.     external_links:
  358.       - es06:elasticsearch6
  359.       - es07:elasticsearch7
  360.  
  361.   nginx:
  362.     image: nginx:latest
  363.     container_name: nginx
  364.     volumes:
  365.       - ./config/nginx.conf:/etc/nginx/nginx.conf
  366.     ports:
  367.       - 80:80
  368.     links:
  369.       - es06
  370.       - es07
  371.       - kibana
  372.       - cerebro
  373.     networks:
  374.       - frontal
  375.       - publica  
  376.  
  377. networks:
  378.   elastic:
  379.     driver: bridge
  380.   frontal:
  381.     driver: bridge
  382.   publica:
  383.     driver: bridge
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top