skywalking-elasticsearch docker-compose配置

skywalking 8.x-elasticsearch docker-compose配置

基于 skywalkiing 8.9

docker-compose.yml 配置

version: '3'
services:
  elasticsearch:    
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
    container_name: elasticsearch
    environment:
       - discovery.type=single-node
       - http.port=9200
       - http.cors.enabled=true
       - http.cors.allow-origin=*
       - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
       - http.cors.allow-credentials=false
       - bootstrap.memory_lock=true
       - 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
       - TZ=Asia/Shanghai    
    volumes:      
       - $PWD/data/es/plugins:/usr/share/elasticsearch/plugins
       - $PWD/data/es/data:/usr/share/elasticsearch/data
    ports:      
         - 9200:9200
         - 9300:9300
  kibana:    
     image: docker.elastic.co/kibana/kibana:7.10.1
     container_name: kibana
     links:
        - elasticsearch:es    
     depends_on:      
        - elasticsearch  
     environment:      
        - elasticsearch.hosts=http://es:9200
        - TZ=Asia/Shanghai    
     ports:      
        - 5601:5601
     volumes:
        - $PWD/data/kibana/data:/usr/share/kibana/data
  oap:
    image: apache/skywalking-oap-server:8.9.0
    container_name: oap
    restart: always
    ports:
      - 11800:11800 # agent 上报数据的端口,这是 gRPC 端口
      - 12800:12800 # ui 读取数据的端口, 这是 http 端口
    environment:
      - TZ=Asia/Shanghai
      - SW_STORAGE=elasticsearch
      - SW_STORAGE_ES_CLUSTER_NODES=192.168.226.10:9200
      - SW_HEALTH_CHECKER=default

  skywaling-ui:
    image: apache/skywalking-ui:8.9.0
    container_name: ui
    depends_on:
      - oap
    links:
      - oap
    ports:
      - 8088:8080
    environment:
      - SW_OAP_ADDRESS=http://192.168.226.10:12800
      - TZ=Asia/Shanghai

访问 http://localhost:8088` , 这里映射成自己端口

skywalking-elasticsearch docker-compose配置_第1张图片

你可能感兴趣的:(docker,skywalking)