-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
44 lines (39 loc) · 1.1 KB
/
docker-compose.yaml
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
version: '3.7'
services:
app:
build: .
command: ["tail", "-f", "/dev/null"]
depends_on:
- elasticsearch
- logstash
sh:
image: logstash-apm
command: ["tail", "-f", "/dev/null"]
volumes:
- ./:/app
depends_on:
- elasticsearch
- logstash
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
logstash:
image: docker.elastic.co/logstash/logstash-oss:7.9.3
command: logstash -f /etc/logstash/conf.d/logstash.conf
volumes: [./docker/logstash.conf:/etc/logstash/conf.d/logstash.conf]
environment: [ELASTICSEARCH_HOST=elasticsearch]
# kibana:
# image: docker.elastic.co/kibana/kibana-oss:7.7.1
# ports: [5601:5601]
# environment:
# - ELASTICSEARCH_URL=http://elasticsearch:9200
# - ELASTICSEARCH_HOSTS=http://elasticsearch:9200