2023-05-24 18:42:40 +08:00
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
kibana:
|
|
|
|
|
image: kibana:8.7.1
|
|
|
|
|
ports:
|
|
|
|
|
- "5610:5601"
|
|
|
|
|
networks:
|
|
|
|
|
chassis_agent_logging:
|
|
|
|
|
links:
|
|
|
|
|
- "elasticsearch"
|
|
|
|
|
elasticsearch:
|
|
|
|
|
image: elasticsearch:8.7.1
|
|
|
|
|
hostname: "elasticsearch"
|
|
|
|
|
environment:
|
|
|
|
|
- "discovery.type=single-node" #单机模式启动
|
|
|
|
|
- "TZ=Asia/Shanghai" # 设置时区
|
|
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # 设置jvm内存大小
|
2023-05-25 13:54:12 +08:00
|
|
|
|
- "xpack.security.enabled=false" # 关闭 ssl/tls(必须)
|
2023-05-24 18:42:40 +08:00
|
|
|
|
ports:
|
|
|
|
|
- "9200:9200"
|
|
|
|
|
expose:
|
|
|
|
|
- 9200
|
|
|
|
|
networks:
|
|
|
|
|
chassis_agent_logging:
|
|
|
|
|
fluentd:
|
|
|
|
|
build:
|
|
|
|
|
context: ./fluentd
|
|
|
|
|
volumes:
|
|
|
|
|
- ./fluentd/conf/fluent.conf:/opt/bitnami/fluentd/conf/fluentd.conf
|
|
|
|
|
links:
|
|
|
|
|
- "elasticsearch"
|
|
|
|
|
ports:
|
|
|
|
|
- "24224:24224"
|
|
|
|
|
- "24224:24224/udp"
|
|
|
|
|
networks:
|
|
|
|
|
chassis_agent_logging:
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
chassis_agent_logging:
|
|
|
|
|
driver: bridge
|
|
|
|
|
|
|
|
|
|
|