|
1 | 1 | # Only used for testing the docker images
|
2 | 2 | version: '3'
|
3 | 3 | services:
|
4 |
| - elasticsearch-default: |
| 4 | + elasticsearch-default-1: |
5 | 5 | image: elasticsearch:test
|
6 | 6 | environment:
|
| 7 | + - node.name=elasticsearch-default-1 |
| 8 | + - cluster.initial_master_nodes=elasticsearch-default-1,elasticsearch-default-2 |
| 9 | + - discovery.seed_hosts=elasticsearch-default-2:9300 |
7 | 10 | - cluster.name=elasticsearch-default
|
8 |
| - - discovery.type=single-node |
| 11 | + - bootstrap.memory_lock=true |
| 12 | + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
| 13 | + - path.repo=/tmp/es-repo |
| 14 | + - node.attr.testattr=test |
| 15 | + - cluster.routing.allocation.disk.watermark.low=1b |
| 16 | + - cluster.routing.allocation.disk.watermark.high=1b |
| 17 | + - cluster.routing.allocation.disk.watermark.flood_stage=1b |
| 18 | + - script.max_compilations_rate=2048/1m |
| 19 | + - node.store.allow_mmap=false |
| 20 | + - xpack.security.enabled=true |
| 21 | + - xpack.security.transport.ssl.enabled=true |
| 22 | + - xpack.security.http.ssl.enabled=true |
| 23 | + - xpack.security.authc.token.enabled=true |
| 24 | + - xpack.security.audit.enabled=true |
| 25 | + - xpack.security.authc.realms.file.file1.order=0 |
| 26 | + - xpack.security.authc.realms.native.native1.order=1 |
| 27 | + - xpack.security.transport.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks |
| 28 | + - xpack.security.http.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks |
| 29 | + - xpack.http.ssl.verification_mode=certificate |
| 30 | + - xpack.security.transport.ssl.verification_mode=certificate |
| 31 | + - xpack.license.self_generated.type=trial |
| 32 | + volumes: |
| 33 | + - ./build/repo:/tmp/es-repo |
| 34 | + - ./build/certs/testnode.jks:/usr/share/elasticsearch/config/testnode.jks |
| 35 | + - ./build/logs/default-1:/usr/share/elasticsearch/logs |
| 36 | + - ./docker-test-entrypoint.sh:/docker-test-entrypoint.sh |
9 | 37 | ports:
|
10 | 38 | - "9200"
|
11 |
| - elasticsearch-oss: |
12 |
| - image: elasticsearch-oss:test |
| 39 | + ulimits: |
| 40 | + memlock: |
| 41 | + soft: -1 |
| 42 | + hard: -1 |
| 43 | + entrypoint: /docker-test-entrypoint.sh |
| 44 | + elasticsearch-default-2: |
| 45 | + image: elasticsearch:test |
| 46 | + environment: |
| 47 | + - node.name=elasticsearch-default-2 |
| 48 | + - cluster.initial_master_nodes=elasticsearch-default-1,elasticsearch-default-2 |
| 49 | + - discovery.seed_hosts=elasticsearch-default-1:9300 |
| 50 | + - cluster.name=elasticsearch-default |
| 51 | + - bootstrap.memory_lock=true |
| 52 | + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
| 53 | + - path.repo=/tmp/es-repo |
| 54 | + - node.attr.testattr=test |
| 55 | + - cluster.routing.allocation.disk.watermark.low=1b |
| 56 | + - cluster.routing.allocation.disk.watermark.high=1b |
| 57 | + - cluster.routing.allocation.disk.watermark.flood_stage=1b |
| 58 | + - script.max_compilations_rate=2048/1m |
| 59 | + - node.store.allow_mmap=false |
| 60 | + - xpack.security.enabled=true |
| 61 | + - xpack.security.transport.ssl.enabled=true |
| 62 | + - xpack.security.http.ssl.enabled=true |
| 63 | + - xpack.security.authc.token.enabled=true |
| 64 | + - xpack.security.audit.enabled=true |
| 65 | + - xpack.security.authc.realms.file.file1.order=0 |
| 66 | + - xpack.security.authc.realms.native.native1.order=1 |
| 67 | + - xpack.security.transport.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks |
| 68 | + - xpack.security.http.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks |
| 69 | + - xpack.http.ssl.verification_mode=certificate |
| 70 | + - xpack.security.transport.ssl.verification_mode=certificate |
| 71 | + - xpack.license.self_generated.type=trial |
| 72 | + volumes: |
| 73 | + - ./build/repo:/tmp/es-repo |
| 74 | + - ./build/certs/testnode.jks:/usr/share/elasticsearch/config/testnode.jks |
| 75 | + - ./build/logs/default-2:/usr/share/elasticsearch/logs |
| 76 | + - ./docker-test-entrypoint.sh:/docker-test-entrypoint.sh |
| 77 | + ports: |
| 78 | + - "9200" |
| 79 | + ulimits: |
| 80 | + memlock: |
| 81 | + soft: -1 |
| 82 | + hard: -1 |
| 83 | + entrypoint: /docker-test-entrypoint.sh |
| 84 | + elasticsearch-oss-1: |
| 85 | + image: elasticsearch:test |
| 86 | + environment: |
| 87 | + - node.name=elasticsearch-oss-1 |
| 88 | + - cluster.initial_master_nodes=elasticsearch-oss-1,elasticsearch-oss-2 |
| 89 | + - discovery.seed_hosts=elasticsearch-oss-2:9300 |
| 90 | + - cluster.name=elasticsearch-oss |
| 91 | + - bootstrap.memory_lock=true |
| 92 | + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
| 93 | + - path.repo=/tmp/es-repo |
| 94 | + - node.attr.testattr=test |
| 95 | + - cluster.routing.allocation.disk.watermark.low=1b |
| 96 | + - cluster.routing.allocation.disk.watermark.high=1b |
| 97 | + - cluster.routing.allocation.disk.watermark.flood_stage=1b |
| 98 | + - script.max_compilations_rate=2048/1m |
| 99 | + - node.store.allow_mmap=false |
| 100 | + volumes: |
| 101 | + - ./build/oss-repo:/tmp/es-repo |
| 102 | + - ./build/logs/oss-1:/usr/share/elasticsearch/logs |
| 103 | + ports: |
| 104 | + - "9200" |
| 105 | + ulimits: |
| 106 | + memlock: |
| 107 | + soft: -1 |
| 108 | + hard: -1 |
| 109 | + elasticsearch-oss-2: |
| 110 | + image: elasticsearch:test |
13 | 111 | environment:
|
| 112 | + - node.name=elasticsearch-oss-2 |
| 113 | + - cluster.initial_master_nodes=elasticsearch-oss-1,elasticsearch-oss-2 |
| 114 | + - discovery.seed_hosts=elasticsearch-oss-1:9300 |
14 | 115 | - cluster.name=elasticsearch-oss
|
15 |
| - - discovery.type=single-node |
| 116 | + - bootstrap.memory_lock=true |
| 117 | + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
| 118 | + - path.repo=/tmp/es-repo |
| 119 | + - node.attr.testattr=test |
| 120 | + - cluster.routing.allocation.disk.watermark.low=1b |
| 121 | + - cluster.routing.allocation.disk.watermark.high=1b |
| 122 | + - cluster.routing.allocation.disk.watermark.flood_stage=1b |
| 123 | + - script.max_compilations_rate=2048/1m |
| 124 | + - node.store.allow_mmap=false |
| 125 | + volumes: |
| 126 | + - ./build/oss-repo:/tmp/es-repo |
| 127 | + - ./build/logs/oss-2:/usr/share/elasticsearch/logs |
16 | 128 | ports:
|
17 | 129 | - "9200"
|
| 130 | + ulimits: |
| 131 | + memlock: |
| 132 | + soft: -1 |
| 133 | + hard: -1 |
0 commit comments