docker部署graylog

version: '2'

services:

  mongodb:

    container_name: mongo

    image: registry.cn-shanghai.aliyuncs.com/longjizhijia/yucl:mongo4.2.5

    volumes:

      - /home/graylog/mongodb_data:/data/db

  elasticsearch:

    container_name: es

    image: registry.cn-shanghai.aliyuncs.com/longjizhijia/yucl:es7.6.2

    volumes:

      - /home/graylog/es_data/plugins:/usr/share/elasticsearch/plugins

      - /home/graylog/es_data/data:/usr/share/elasticsearch/data

    environment:

      - TZ=Asia/Shanghai

      - http.host=0.0.0.0

      - network.host=0.0.0.0

      - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"

      - discovery.type=single-node

      - cluster.name=elasticsearch


    ulimits:

      memlock:

        soft: -1

        hard: -1

    mem_limit: 4g

  graylog:

    container_name: graylog

    image:  graylog/graylog:3.3

    environment:

      - GRAYLOG_PASSWORD_SECRET=somepasswordpepper

      - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918

      - GRAYLOG_HTTP_EXTERNAL_URI=http://192.168.20.62:9000/ #这里配置公网访问地址,可注释.

      - TZ=Asia/Shanghai

    links:

      - mongodb:mongo

      - elasticsearch

    depends_on:

      - mongodb

      - elasticsearch

    ports:

      - 9000:9000

      - 1514:1514

      - 1514:1514/udp

      - 12201:12201

      - 12201-12205:12201-12205/udp

你可能感兴趣的:(docker部署graylog)