-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 814 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 814 Bytes
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
version: "3.8"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.0
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms2g -Xmx2g
ports: ["9200:9200"]
volumes:
- esdata:/usr/share/elasticsearch/data
- ./analysis:/usr/share/elasticsearch/config/analysis
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:9200 >/dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 10
app:
build: .
environment:
- ES_HOST=http://elasticsearch:9200
- USE_ES=1
depends_on:
elasticsearch:
condition: service_healthy
volumes:
- ./data:/app/data
- ./analysis:/app/analysis
ports: ["8000:8000"]
volumes:
esdata: {}