mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
58 lines
1.8 KiB
YAML
Executable File
58 lines
1.8 KiB
YAML
Executable File
version: '2'
|
|
|
|
services:
|
|
redis:
|
|
image: registry.cn-hangzhou.aliyuncs.com/kennylee/redis
|
|
container_name: elk_redis
|
|
networks:
|
|
- elk
|
|
volumes:
|
|
- ./data/redis:/data:rw
|
|
elasticsearch:
|
|
build: elasticsearch/
|
|
container_name: elasticsearch
|
|
ports:
|
|
- "9200:9200"
|
|
- "9300:9300"
|
|
environment:
|
|
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
|
|
# disable X-Pack
|
|
# see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html
|
|
# https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-enabling
|
|
xpack.security.enabled: "false"
|
|
xpack.monitoring.enabled: "false"
|
|
xpack.graph.enabled: "false"
|
|
xpack.watcher.enabled: "false"
|
|
networks:
|
|
- elk
|
|
volumes:
|
|
- ./data/elasticsearch:/usr/share/elasticsearch/data:rw
|
|
#- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
|
logstash:
|
|
build: logstash/indexer/
|
|
container_name: logstash_indexer
|
|
volumes:
|
|
- ./logstash/indexer/config/logstash.yml:/usr/share/logstash/config/logstash.yml
|
|
- ./logstash/indexer/pipeline:/usr/share/logstash/pipeline
|
|
environment:
|
|
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
|
|
networks:
|
|
- elk
|
|
depends_on:
|
|
- elasticsearch
|
|
- redis
|
|
kibana:
|
|
build: kibana/
|
|
container_name: kibana
|
|
volumes:
|
|
- ./kibana/config/:/usr/share/kibana/config
|
|
ports:
|
|
- "5601:5601"
|
|
networks:
|
|
- elk
|
|
depends_on:
|
|
- elasticsearch
|
|
networks:
|
|
elk:
|
|
driver: bridge
|