2023-01-06 18:28:08 +09:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
es:
|
|
|
|
image: 'docker.elastic.co/elasticsearch/elasticsearch-oss:7.3.1'
|
|
|
|
container_name: elasticsearch_container
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
- "9300:9300"
|
|
|
|
volumes:
|
|
|
|
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
|
|
|
|
- ./elasticsearch/data:/usr/share/elasticsearch/data
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
ES_JAVA_OPTS: "-Xmx1024m -Xms1024m"
|
|
|
|
networks:
|
|
|
|
- elk_network
|
|
|
|
# links:
|
|
|
|
# - kb
|
|
|
|
# - ls
|
|
|
|
# - fb
|
|
|
|
|
|
|
|
kb:
|
|
|
|
image: 'docker.elastic.co/kibana/kibana-oss:7.3.1'
|
|
|
|
container_name: kibana_container
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
volumes:
|
|
|
|
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- fb
|
|
|
|
networks:
|
|
|
|
- elk_network
|
|
|
|
# links:
|
|
|
|
# - es
|
|
|
|
# - ls
|
|
|
|
# - fb
|
|
|
|
|
|
|
|
|
|
|
|
ls:
|
|
|
|
image: 'docker.elastic.co/logstash/logstash-oss:7.3.1'
|
|
|
|
container_name: logstash_container
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
- "9600:9600"
|
|
|
|
- "5044:5044"
|
|
|
|
volumes:
|
2023-01-09 18:11:03 +09:00
|
|
|
- ./logstash/config:/usr/share/logstash/config:z
|
2023-01-06 18:28:08 +09:00
|
|
|
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
LS_JAVA_OPTS: "-Xmx1024m -Xms1024m"
|
|
|
|
depends_on:
|
|
|
|
- es
|
|
|
|
networks:
|
|
|
|
- elk_network
|
|
|
|
# links:
|
|
|
|
# - kb
|
|
|
|
# - es
|
|
|
|
# - fb
|
|
|
|
|
|
|
|
|
|
|
|
fb:
|
|
|
|
image: 'docker.elastic.co/beats/filebeat-oss:7.3.1'
|
|
|
|
container_name: filebeat_container
|
|
|
|
depends_on:
|
|
|
|
- ls
|
|
|
|
networks:
|
|
|
|
- elk_network
|
|
|
|
# links:
|
|
|
|
# - kb
|
|
|
|
# - ls
|
|
|
|
# - es
|
|
|
|
|
|
|
|
networks:
|
|
|
|
elk_network:
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
|