chassis-agent/docker-compose-logging.yml

49 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2023-05-24 18:42:40 +08:00
version: "3"
services:
kibana:
image: kibana:8.7.1
2023-05-29 16:10:41 +08:00
hostname: "kibana"
container_name: "kibana"
2023-05-24 18:42:40 +08:00
ports:
- "5610:5601"
networks:
chassis_agent_logging:
links:
- "elasticsearch"
elasticsearch:
image: elasticsearch:8.7.1
hostname: "elasticsearch"
2023-05-29 16:10:41 +08:00
container_name: "elasticsearch"
2023-05-24 18:42:40 +08:00
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:
2023-05-29 16:10:41 +08:00
hostname: "fluentd"
container_name: "fluentd"
2023-05-24 18:42:40 +08:00
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