-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (49 loc) · 1.24 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
53 lines (49 loc) · 1.24 KB
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
x-base: &base
restart: unless-stopped
logging:
options:
max-size: "12m"
max-file: "5"
driver: json-file
networks:
- php-elasticsearch-builder
networks:
php-elasticsearch-builder:
services:
elasticsearch:
<<: *base
image: docker.elastic.co/elasticsearch/elasticsearch:9.2.1
volumes:
- "./.data/elastic:/usr/share/elasticsearch/data"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
healthcheck:
test: [ "CMD-SHELL", "curl -s http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=500ms" ]
interval: 10s
timeout: 10s
retries: 120
kibana:
<<: *base
image: docker.elastic.co/kibana/kibana:9.2.1
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
depends_on:
elasticsearch:
condition: service_healthy
workspace:
<<: *base
build:
context: .
dockerfile: Dockerfile
target: workspace
entrypoint: "/bin/bash"
command: [ "-c", "while true; do sleep 3000; done;" ]
working_dir: /opt/app
environment:
ELASTICSEARCH_HOST: elasticsearch:9200
volumes:
- "./:/opt/app"
depends_on:
elasticsearch:
condition: service_healthy