-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
docker-compose.elasticsearch.yml
75 lines (72 loc) · 2.25 KB
/
docker-compose.elasticsearch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3"
services:
localstack:
image: docker.io/localstack/localstack@sha256:f21f1fc770ee4bfd5012afdc902154c56b7fb18c14cf672de151b65569c8251e
environment:
- SERVICES=elasticsearch:4571
networks:
- backend
elasticsearch:
image: docker.io/elasticsearch:7.13.1
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms400m -Xmx400m"
networks:
- backend
elasticsearch-secure:
image: docker.io/elasticsearch:7.13.1
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=true
- xpack.security.http.ssl.certificate=certs/intermediate_server/certs/elasticsearch-secure-chain.cert.pem
- xpack.security.http.ssl.key=certs/intermediate_server/private/elasticsearch-secure.key.pem
- xpack.security.transport.ssl.enabled=true
- xpack.security.transport.ssl.certificate=certs/intermediate_server/certs/elasticsearch-secure-chain.cert.pem
- xpack.security.transport.ssl.key=certs/intermediate_server/private/elasticsearch-secure.key.pem
- ELASTIC_PASSWORD=vector
- "ES_JAVA_OPTS=-Xms400m -Xmx400m"
networks:
- backend
volumes:
- ${PWD}/tests/data/ca:/usr/share/elasticsearch/config/certs:ro
runner:
build:
context: ${PWD}
dockerfile: scripts/integration/Dockerfile
args:
- RUST_VERSION=${RUST_VERSION}
working_dir: /code
command:
- "cargo"
- "nextest"
- "run"
- "--no-fail-fast"
- "--no-default-features"
- "--features"
- "es-integration-tests"
- "--lib"
- "::elasticsearch::integration_tests::"
depends_on:
- localstack
- elasticsearch
- elasticsearch-secure
environment:
- AWS_ACCESS_KEY_ID=dummy
- AWS_SECRET_ACCESS_KEY=dummy
- ELASTICSEARCH_AWS_ADDRESS=http://localstack:4571
- ELASTICSEARCH_HTTP_ADDRESS=http://elasticsearch:9200
- ELASTICSEARCH_HTTPS_ADDRESS=https://elasticsearch-secure:9200
networks:
- backend
volumes:
- ${PWD}:/code
- target:/code/target
- cargogit:/usr/local/cargo/git
- cargoregistry:/usr/local/cargo/registry
networks:
backend: {}
volumes:
target: {}
cargogit: {}
cargoregistry: {}