docker-compose.yml 972 字节
Newer Older
Z
zhangxin 已提交
1
version: '2.1'
A
ascrutae 已提交
2
services:
Z
zhangxin 已提交
3
  skywalking-webui:
A
ascrutae 已提交
4
    image: sky-walking-ui:3.1-2017
Z
zhangxin 已提交
5 6 7 8 9 10 11
    expose:
      - "8080"
    ports:
      - "8080:8080"
    links:
      - skywalking-collector
    environment:
12
      - COLLECTOR_SERVERS=skywalking-collector:12800
Z
zhangxin 已提交
13 14

  skywalking-collector:
A
ascrutae 已提交
15
    image: skywalking-collector:3.1-2017
A
ascrutae 已提交
16
    expose:
17
      - "12800"
Z
zhangxin 已提交
18
      - "1000"
Z
zhangxin 已提交
19
    ports:
20
      - "12800:12800"
A
ascrutae 已提交
21
    depends_on:
Z
zhangxin 已提交
22 23
      es-server:
        condition: service_healthy
A
ascrutae 已提交
24
    links:
Z
zhangxin 已提交
25
      - es-server
Z
zhangxin 已提交
26 27 28
    environment:
      - ES_CLUSTER_NODES=es-server:9300
      - HTTP_HOST_NAME=0.0.0.0
A
ascrutae 已提交
29

Z
zhangxin 已提交
30 31
  es-server:
    image: elasticsearch:5.3
Z
zhangxin 已提交
32
    command: "-Enode.name=TestNode -Enetwork.host=0.0.0.0 -Ehttp.cors.enabled=true -Ehttp.cors.allow-origin=* -Ethread_pool.bulk.queue_size=1000 -Ecluster.name=CollectorDBCluster"
A
ascrutae 已提交
33
    expose:
Z
zhangxin 已提交
34 35
      - "9200"
      - "9300"
Z
zhangxin 已提交
36 37 38 39
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9200"]
      interval: 30s
      timeout: 10s
40
      retries: 5