|
| 1 | +# Only used for testing the docker images |
| 2 | +version: '3.7' |
| 3 | +services: |
| 4 | + elasticsearch-default-1: |
| 5 | + image: elasticsearch:test |
| 6 | + environment: |
| 7 | + - node.name=elasticsearch-default-1 |
| 8 | + - cluster.initial_master_nodes=elasticsearch-default-1 |
| 9 | + - cluster.name=elasticsearch-default-1 |
| 10 | + - bootstrap.memory_lock=true |
| 11 | + - network.publish_host=127.0.0.1 |
| 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 |
| 37 | + ports: |
| 38 | + - "9200" |
| 39 | + - "9300" |
| 40 | + ulimits: |
| 41 | + memlock: |
| 42 | + soft: -1 |
| 43 | + hard: -1 |
| 44 | + nofile: |
| 45 | + soft: 65536 |
| 46 | + hard: 65536 |
| 47 | + entrypoint: /docker-test-entrypoint.sh |
| 48 | + healthcheck: |
| 49 | + start_period: 15s |
| 50 | + test: ["CMD", "curl", "-f", "-u", "x_pack_rest_user:x-pack-test-password", "-k", "https://localhost:9200"] |
| 51 | + interval: 10s |
| 52 | + timeout: 2s |
| 53 | + retries: 5 |
| 54 | + elasticsearch-default-2: |
| 55 | + image: elasticsearch:test |
| 56 | + environment: |
| 57 | + - node.name=elasticsearch-default-2 |
| 58 | + - cluster.initial_master_nodes=elasticsearch-default-2 |
| 59 | + - cluster.name=elasticsearch-default-2 |
| 60 | + - bootstrap.memory_lock=true |
| 61 | + - network.publish_host=127.0.0.1 |
| 62 | + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
| 63 | + - path.repo=/tmp/es-repo |
| 64 | + - node.attr.testattr=test |
| 65 | + - cluster.routing.allocation.disk.watermark.low=1b |
| 66 | + - cluster.routing.allocation.disk.watermark.high=1b |
| 67 | + - cluster.routing.allocation.disk.watermark.flood_stage=1b |
| 68 | + - script.max_compilations_rate=2048/1m |
| 69 | + - node.store.allow_mmap=false |
| 70 | + - xpack.security.enabled=true |
| 71 | + - xpack.security.transport.ssl.enabled=true |
| 72 | + - xpack.security.http.ssl.enabled=true |
| 73 | + - xpack.security.authc.token.enabled=true |
| 74 | + - xpack.security.audit.enabled=true |
| 75 | + - xpack.security.authc.realms.file.file1.order=0 |
| 76 | + - xpack.security.authc.realms.native.native1.order=1 |
| 77 | + - xpack.security.transport.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks |
| 78 | + - xpack.security.http.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks |
| 79 | + - xpack.http.ssl.verification_mode=certificate |
| 80 | + - xpack.security.transport.ssl.verification_mode=certificate |
| 81 | + - xpack.license.self_generated.type=trial |
| 82 | + volumes: |
| 83 | + - ./build/repo:/tmp/es-repo |
| 84 | + - ./build/certs/testnode.jks:/usr/share/elasticsearch/config/testnode.jks |
| 85 | + - ./build/logs/default-2:/usr/share/elasticsearch/logs |
| 86 | + - ./docker-test-entrypoint.sh:/docker-test-entrypoint.sh |
| 87 | + ports: |
| 88 | + - "9200" |
| 89 | + - "9300" |
| 90 | + ulimits: |
| 91 | + memlock: |
| 92 | + soft: -1 |
| 93 | + hard: -1 |
| 94 | + nofile: |
| 95 | + soft: 65536 |
| 96 | + hard: 65536 |
| 97 | + entrypoint: /docker-test-entrypoint.sh |
| 98 | + healthcheck: |
| 99 | + start_period: 15s |
| 100 | + test: ["CMD", "curl", "-f", "-u", "x_pack_rest_user:x-pack-test-password", "-k", "https://localhost:9200"] |
| 101 | + interval: 10s |
| 102 | + timeout: 2s |
| 103 | + retries: 5 |
| 104 | + haproxy: |
| 105 | + image: haproxy:2.1.2 |
| 106 | + ports: |
| 107 | + - "9600" |
| 108 | + volumes: |
| 109 | + - ./haproxy-default.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro |
0 commit comments