|
| 1 | +services: |
| 2 | + elastic-1: |
| 3 | + image: "bitnami/elasticsearch:8.17.1" |
| 4 | + container_name: elastic-1 |
| 5 | + environment: |
| 6 | + BITNAMI_DEBUG: true |
| 7 | + ELASTICSEARCH_NODE_NAME: elastic-1 |
| 8 | + ELASTICSEARCH_CLUSTER_NAME: elastic |
| 9 | + ELASTICSEARCH_PASSWORD: qwerty |
| 10 | + ELASTICSEARCH_ENABLE_SECURITY: true |
| 11 | + ELASTICSEARCH_ENABLE_REST_TLS: false |
| 12 | + ELASTICSEARCH_TLS_VERIFICATION_MODE: none |
| 13 | + ELASTICSEARCH_TRANSPORT_TLS_KEYSTORE_LOCATION: /opt/bitnami/elasticsearch/config/certs/ca-elastic.p12 |
| 14 | + ELASTICSEARCH_TRANSPORT_TLS_TRUSTSTORE_LOCATION: /opt/bitnami/elasticsearch/config/certs/ca-elastic.p12 |
| 15 | + ELASTICSEARCH_CLUSTER_HOSTS: elastic-1,elastic-2,elastic-3 |
| 16 | + ELASTICSEARCH_HEAP_SIZE: 1g |
| 17 | + ports: |
| 18 | + - "9200:9200" |
| 19 | + - "9300:9300" |
| 20 | + healthcheck: |
| 21 | + test: [ "CMD-SHELL", "curl --silent --fail --user elastic:qwerty localhost:9200/_cluster/health?local=true || exit 1" ] |
| 22 | + interval: 20s |
| 23 | + timeout: 20s |
| 24 | + retries: 10 |
| 25 | + volumes: |
| 26 | + - elastic-1:/bitnami |
| 27 | + - ./certs/:/opt/bitnami/elasticsearch/config/certs/ |
| 28 | + |
| 29 | + elastic-2: |
| 30 | + image: "bitnami/elasticsearch:8.17.1" |
| 31 | + container_name: elastic-2 |
| 32 | + environment: |
| 33 | + ELASTICSEARCH_NODE_NAME: elastic-2 |
| 34 | + ELASTICSEARCH_CLUSTER_NAME: elastic |
| 35 | + ELASTICSEARCH_PASSWORD: qwerty |
| 36 | + ELASTICSEARCH_ENABLE_SECURITY: true |
| 37 | + ELASTICSEARCH_ENABLE_REST_TLS: false |
| 38 | + ELASTICSEARCH_TLS_VERIFICATION_MODE: none |
| 39 | + ELASTICSEARCH_TRANSPORT_TLS_KEYSTORE_LOCATION: /opt/bitnami/elasticsearch/config/certs/ca-elastic.p12 |
| 40 | + ELASTICSEARCH_TRANSPORT_TLS_TRUSTSTORE_LOCATION: /opt/bitnami/elasticsearch/config/certs/ca-elastic.p12 |
| 41 | + ELASTICSEARCH_CLUSTER_HOSTS: elastic-1,elastic-2,elastic-3 |
| 42 | + ELASTICSEARCH_HEAP_SIZE: 1g |
| 43 | + ports: |
| 44 | + - "9201:9200" |
| 45 | + - "9301:9300" |
| 46 | + healthcheck: |
| 47 | + test: [ "CMD-SHELL", "curl --silent --fail --user elastic:qwerty localhost:9200/_cluster/health?local=true || exit 1" ] |
| 48 | + interval: 20s |
| 49 | + timeout: 20s |
| 50 | + retries: 10 |
| 51 | + volumes: |
| 52 | + - elastic-2:/bitnami |
| 53 | + - ./certs/:/opt/bitnami/elasticsearch/config/certs/ |
| 54 | + |
| 55 | + elastic-3: |
| 56 | + image: "bitnami/elasticsearch:8.17.1" |
| 57 | + container_name: elastic-3 |
| 58 | + environment: |
| 59 | + ELASTICSEARCH_NODE_NAME: elastic-3 |
| 60 | + ELASTICSEARCH_CLUSTER_NAME: elastic |
| 61 | + ELASTICSEARCH_PASSWORD: qwerty |
| 62 | + ELASTICSEARCH_ENABLE_SECURITY: true |
| 63 | + ELASTICSEARCH_ENABLE_REST_TLS: false |
| 64 | + ELASTICSEARCH_TLS_VERIFICATION_MODE: none |
| 65 | + ELASTICSEARCH_TRANSPORT_TLS_KEYSTORE_LOCATION: /opt/bitnami/elasticsearch/config/certs/ca-elastic.p12 |
| 66 | + ELASTICSEARCH_TRANSPORT_TLS_TRUSTSTORE_LOCATION: /opt/bitnami/elasticsearch/config/certs/ca-elastic.p12 |
| 67 | + ELASTICSEARCH_CLUSTER_HOSTS: elastic-1,elastic-2,elastic-3 |
| 68 | + ELASTICSEARCH_HEAP_SIZE: 1g |
| 69 | + ports: |
| 70 | + - "9202:9200" |
| 71 | + - "9302:9300" |
| 72 | + healthcheck: |
| 73 | + test: [ "CMD-SHELL", "curl --silent --fail --user elastic:qwerty localhost:9200/_cluster/health?local=true || exit 1" ] |
| 74 | + interval: 20s |
| 75 | + timeout: 20s |
| 76 | + retries: 10 |
| 77 | + volumes: |
| 78 | + - elastic-3:/bitnami |
| 79 | + - ./certs/:/opt/bitnami/elasticsearch/config/certs/ |
| 80 | + |
| 81 | + kibana: |
| 82 | + image: "bitnami/kibana:8.17.1" |
| 83 | + container_name: kibana |
| 84 | + environment: |
| 85 | + KIBANA_CREATE_USER: yes |
| 86 | + KIBANA_PASSWORD: qwerty |
| 87 | + KIBANA_ELASTICSEARCH_PASSWORD: qwerty |
| 88 | + KIBANA_ELASTICSEARCH_URL: elastic-1 |
| 89 | + ports: |
| 90 | + - "5601:5601" |
| 91 | + healthcheck: |
| 92 | + test: [ "CMD-SHELL", "curl --silent --fail localhost:5601/api/status || exit 1" ] |
| 93 | + interval: 15s |
| 94 | + timeout: 15s |
| 95 | + retries: 5 |
| 96 | + volumes: |
| 97 | + - kibana:/bitnami/kibana |
| 98 | + depends_on: |
| 99 | + elastic-1: |
| 100 | + condition: service_healthy |
| 101 | + elastic-2: |
| 102 | + condition: service_healthy |
| 103 | + elastic-3: |
| 104 | + condition: service_healthy |
| 105 | + |
| 106 | +volumes: |
| 107 | + elastic-1: |
| 108 | + elastic-2: |
| 109 | + elastic-3: |
| 110 | + kibana: |
0 commit comments