-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.ek-stack.yml
40 lines (40 loc) · 1.05 KB
/
compose.ek-stack.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
services:
structures-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.1
container_name: structures-elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
# - _JAVA_OPTIONS=-XX:UseSVE=0
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail 127.0.0.1:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
ports:
- "9200:9200" # allow local kibana or curl usage
stdin_open: true
tty: true
deploy:
resources:
reservations:
memory: 4G
limits:
memory: 4G
volumes:
- ~/structures/elastic-data:/usr/share/elasticsearch/data
structures-kibana:
image: docker.elastic.co/kibana/kibana:8.17.1
container_name: structures-kibana
depends_on:
structures-elasticsearch:
condition: service_healthy
deploy:
resources:
reservations:
memory: 1G
limits:
memory: 1G
ports:
- "5601:5601"