-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 825 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 825 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
34
35
36
37
38
39
40
version: '2.2'
services:
es01:
image: elasticsearch:8.4.3
container_name: es01
ports:
- 9200:9200
environment:
- discovery.type=single-node
- xpack.security.enabled=false
healthcheck:
test: curl -s -I http://localhost:9200 | grep -q 'HTTP/1.1 200 OK'
interval: 10s
timeout: 10s
retries: 120
networks:
- elastic
kibana:
image: kibana:8.4.3
container_name: kibana
ports:
- 5601:5601
environment:
- ELASTICSEARCH_HOSTS=http://es01:9200
healthcheck:
test: curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'
interval: 10s
timeout: 10s
retries: 120
depends_on:
es01:
condition: service_healthy
networks:
- elastic
networks:
elastic:
driver: bridge