49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
version: "3"
|
||
|
||
services:
|
||
kibana:
|
||
image: kibana:8.7.1
|
||
hostname: "kibana"
|
||
container_name: "kibana"
|
||
ports:
|
||
- "5610:5601"
|
||
networks:
|
||
chassis_agent_logging:
|
||
links:
|
||
- "elasticsearch"
|
||
elasticsearch:
|
||
image: elasticsearch:8.7.1
|
||
hostname: "elasticsearch"
|
||
container_name: "elasticsearch"
|
||
environment:
|
||
- "discovery.type=single-node" #单机模式启动
|
||
- "TZ=Asia/Shanghai" # 设置时区
|
||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # 设置jvm内存大小
|
||
- "xpack.security.enabled=false" # 关闭 ssl/tls(必须)
|
||
ports:
|
||
- "9200:9200"
|
||
expose:
|
||
- 9200
|
||
networks:
|
||
chassis_agent_logging:
|
||
fluentd:
|
||
hostname: "fluentd"
|
||
container_name: "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
|
||
|
||
|