-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-integration.yml
47 lines (44 loc) · 1.13 KB
/
docker-compose-integration.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
version: '3.7'
services:
elasticsearch-integration:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.2
container_name: elasticsearch.integration
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- ELASTIC_PASSWORD=topsecret
healthcheck:
test: curl -s http://localhost:9200 >/dev/null || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 5s
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
backend:
image: arcaflow-elasticsearch-plugin-integration-test
build:
dockerfile: ./Dockerfile.integration
context: ./
environment:
- ELASTICSEARCH_URL=http://elasticsearch.integration:9200
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=topsecret
depends_on:
elasticsearch-integration:
condition: service_healthy
volumes:
elasticsearch-data:
driver: local