-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
41 lines (38 loc) · 1.1 KB
/
docker-compose.yaml
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
version: '3.7'
services:
elasticsearch-integration:
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.2
container_name: elasticsearch.integration
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ELASTIC_PASSWORD=topsecret
- ES_JAVA_OPTS=-Xms200m -Xmx200m
healthcheck:
test: curl -s http://localhost:9200 >/dev/null || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 5s
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
backend:
image: arcaflow-opensearch-plugin-integration-test
build:
dockerfile: ./Dockerfile
context: ./
environment:
- ELASTICSEARCH_URL=http://elasticsearch.integration:9200
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=topsecret
command: "-s opensearch -f /inputs/opensearch_example.yaml"
volumes:
- ./inputs:/inputs:Z
depends_on:
elasticsearch-integration:
condition: service_healthy
volumes:
elasticsearch-data:
driver: local