forked from Apstra/aosom-streaming
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-elasticsearch.yml
45 lines (43 loc) · 1.31 KB
/
docker-compose-elasticsearch.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
version: '2'
services:
# -------------------------------------------------------------------------
# Kibana
# -------------------------------------------------------------------------
kibana:
image: docker.elastic.co/kibana/kibana:7.3.2
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://localhost:9200
depends_on:
- elasticsearch
ports:
- "5601:5601"
# -------------------------------------------------------------------------
# elasticsearch
# -------------------------------------------------------------------------
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.2
volumes:
- /etc/localtime:/etc/localtime
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
ports:
- "9200:9200"
- "9300:9300"
# -------------------------------------------------------------------------
# Telegraf - Elasticsearch
# -------------------------------------------------------------------------
telegraf-elasticsearch:
image: apstra/telegraf:latest
command: telegraf -debug
env_file:
- .env
volumes:
- ./config/telegraf-es.toml:/etc/telegraf/telegraf.conf
- /etc/localtime:/etc/localtime
depends_on:
- elasticsearch
ports:
- '7777:7777'
restart: always