-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (55 loc) · 1.73 KB
/
docker-compose.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
# Environment variables that can be overridden with docker compose -e:
#
# ZENTITY_VERSION=1.8.3
# ELASTIC_VERSION=8.13.3
# ELASTICSEARCH_PORT=9200
# KIBANA_PORT=5601
services:
elasticsearch:
image: zentity/zentity-sandbox:latest
ports:
- ${ELASTICSEARCH_PORT:-9200}:9200
user: elasticsearch
environment:
bootstrap.memory_lock: true
cluster.initial_master_nodes: elasticsearch
cluster.name: zentity-sandbox
node.name: elasticsearch
xpack.license.self_generated.type: basic
xpack.security.enabled: false
mem_limit: 1gb
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: [ "CMD-SHELL", "curl -fs http://127.0.0.1:9200" ]
interval: 2s
timeout: 10s
retries: 120
kibana:
depends_on:
elasticsearch:
condition: service_healthy
command: >
bash -c '
sed -i -e "s/elasticsearch\.hosts:.*/elasticsearch.hosts:\n - http:\/\/elasticsearch:9200/g" /opt/kibana/config/kibana.yml
echo "" >> /opt/kibana/config/kibana.yml
echo "server.defaultRoute: /app/dev_tools#/console?load_from=https://raw.githubusercontent.com/zentity-io/zentity-sandbox/main/demo/zentity_api_demo.json" >> /opt/kibana/config/kibana.yml
echo "server.name: kibana" >> /opt/kibana/config/kibana.yml
echo "telemetry.optIn: false" >> /opt/kibana/config/kibana.yml
kibana
'
image: docker.elastic.co/kibana/kibana:${ELASTIC_VERSION:-8.13.3}
ports:
- ${KIBANA_PORT:-5601}:5601
mem_limit: 1gb
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -I http://127.0.0.1:5601 | grep -q 'HTTP/1.1 302 Found'"
]
interval: 2s
timeout: 10s
retries: 120