首页 > 其他分享 >graylog docker-compose 安装yaml

graylog docker-compose 安装yaml

时间:2023-01-12 11:00:11浏览次数:42  
标签:compose mongo yaml graylog elasticsearch 1514 docker networks

graylog是一款日志工具


docker-compose部署

version: '3'
services:

  # MongoDB: https://hub.docker.com/_/mongo/
  mongo:
    image: mongo:5.0.13
    networks:
      - graylog
      
  # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docker.html
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
    environment:
      - http.host=0.0.0.0
      - transport.host=localhost
      - network.host=0.0.0.0
      - "ES_JAVA_OPTS=-Dlog4j2.formatMsgNoLookups=true -Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    deploy:
      resources:
        limits:
          memory: 1g
    networks:
      - graylog
      
  # Graylog: https://hub.docker.com/r/graylog/graylog/
  graylog:
    image: graylog/graylog:5.0
    environment:
      # CHANGE ME (must be at least 16 characters)!
      - GRAYLOG_PASSWORD_SECRET=somepasswordpepper
      # Password: admin
      - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
      - GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
    entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 --  /docker-entrypoint.sh
    networks:
      - graylog
    restart: always
    depends_on:
      - mongo
      - elasticsearch
    ports:
      # Graylog web interface and REST API
      - 9000:9000
      # Syslog TCP
      - 1514:1514
      # Syslog UDP
      - 1514:1514/udp
      # GELF TCP
      - 12201:12201
      # GELF UDP
      - 12201:12201/udp
networks:
  graylog:
    driver: bridge

标签:compose,mongo,yaml,graylog,elasticsearch,1514,docker,networks
From: https://www.cnblogs.com/yhaiqi/p/17045836.html

相关文章

  • arm mysql8.0 docker-compose
    version:"3"services:mysql:image:beercan1989/arm-mysql:latestcontainer_name:data_exchange_databaseports:-3306:3306environment......
  • K8s创建pod yaml文件详解
    apiVersion:v1#指定api版本,此值必须在kubectlapiversion中kind:Pod#指定创建资源的角色/类型metadata:#资源的元数据/属性name:web04-pod#资源的名字,......
  • 4.资源编排(yaml)编写方式
    如何快速编写yaml文件1.使用kubectlcreate命令生成yaml文件  2.使用kubectlget命令导出yaml文件 ......
  • go 语言jsontoYAML
    /*CopyrightTheHelmAuthors.LicensedundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.You......
  • docker-compose 构建项目
    1.创建一个net7webapi项目配置docker-compose.yml支持  Deploy中放的docker-compose.yml 文件 2.dockerfile文件 #Seehttps://aka.ms/containerfa......
  • python类型转换为yaml
    一、参考链接​​https://pyyaml.org/wiki/PyYAMLDocumentation​​二、python类型转换为yaml#-*-coding:utf-8-*-#@Time:2022/1/221:53#@Author:lujunxian#......
  • springboot_yaml与properties区别
    application.properties##springboot这个配置文件可以配置什么的东西呢?##第一种:背官方的配置,呜呜呜太多了##然后,官方推荐视图.yaml代替.properties#key=value,......
  • calico-v3.14.yaml
    ---#Source:calico/templates/calico-config.yaml#ThisConfigMapisusedtoconfigureaself-hostedCalicoinstallation.kind:ConfigMapapiVersion:v1meta......
  • Docker-compose
    一、Docker-compose简介Docker-Compose项目是Docker官方的开源项目,负责实现对Docker容器集群的快速编排。Docker-Compose将所管理的容器分为三层,分别是工程(project),服务......
  • docker-compose常用命令
    build:本地创建镜像command:覆盖缺省命令depends_on:链接容器ports:暴露端口volumes:卷image:pull镜像up:启动stop:停止rm:删除logs:查看日志ps:列出服务相关容器 ......