docker-compose.yml 1.9 KB
Newer Older
Z
zhangxin 已提交
1
version: '2.1'
A
ascrutae 已提交
2
services:
Z
zhangxin 已提交
3
  skywalking-webui:
wu-sheng's avatar
wu-sheng 已提交
4
    image: skywalking/skywalking-ui:3.2.5-2017
Z
zhangxin 已提交
5 6 7 8 9 10
    expose:
      - "8080"
    ports:
      - "8080:8080"
    links:
      - skywalking-collector
A
ascrutae 已提交
11 12 13
    depends_on:
      skywalking-collector:
        condition: service_healthy
Z
zhangxin 已提交
14
    environment:
A
ascrutae 已提交
15
      - COLLECTOR_SERVERS=skywalking-collector:10800
Z
zhangxin 已提交
16 17

  skywalking-collector:
wu-sheng's avatar
wu-sheng 已提交
18
    image: skywalking/skywalking-collector:3.2.5-2017
A
ascrutae 已提交
19
    expose:
A
ascrutae 已提交
20 21
      - "10800"
      - "11800"
22
      - "12800"
Z
zhangxin 已提交
23
    ports:
24
      - "12800:12800"
A
ascrutae 已提交
25 26
      - "11800:11800"
      - "10800:10800"
A
ascrutae 已提交
27
    depends_on:
Z
zhangxin 已提交
28 29
      es-server:
        condition: service_healthy
A
ascrutae 已提交
30 31
      zookeeper-server:
        condition: service_healthy
A
ascrutae 已提交
32
    links:
Z
zhangxin 已提交
33
      - es-server
A
ascrutae 已提交
34
      - zookeeper-server
Z
zhangxin 已提交
35
    environment:
A
ascrutae 已提交
36 37 38
      - ZK_ADDRESSES=zookeeper-server:2181
      - ES_ADDRESSES=es-server:9300
      - BIND_HOST=0.0.0.0
A
ascrutae 已提交
39 40 41
      - AGENT_JETTY_BIND_HOST=skywalking-collector
      - NAMING_BIND_HOST=skywalking-collector
      - UI_JETTY_BIND_HOST=skywalking-collector
A
ascrutae 已提交
42
    healthcheck:
A
ascrutae 已提交
43
      test: ["CMD", "curl", "-f", "http://skywalking-collector:10800/agent/gRPC"]
A
ascrutae 已提交
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
      interval: 10s
      timeout: 10s
      retries: 5

  zookeeper-server:
    image: zookeeper:3.4.9
    expose:
      - "2181"
    ports:
      - "2181:2181"
    healthcheck:
      test: ["CMD", "/zookeeper-3.4.9/bin/zkServer.sh", "status"]
      interval: 10s
      timeout: 10s
      retries: 5
A
ascrutae 已提交
59

Z
zhangxin 已提交
60 61
  es-server:
    image: elasticsearch:5.3
Z
zhangxin 已提交
62
    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"
63 64 65
    environment:
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
A
ascrutae 已提交
66
    expose:
Z
zhangxin 已提交
67 68
      - "9200"
      - "9300"
A
ascrutae 已提交
69 70 71
    ports:
      - "9200:9200"
      - "9300:9300"
Z
zhangxin 已提交
72 73
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9200"]
A
ascrutae 已提交
74
      interval: 10s
Z
zhangxin 已提交
75
      timeout: 10s
76
      retries: 5