diff --git a/README.md b/README.md index 5d3759d..14821dc 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ chassis 微服务基座依赖的服务 - Metrics Server - Prometheus - Grafana +- Tracing + - Skywalking - Logging - Elasticsearch - Logstash @@ -97,8 +99,6 @@ requirements ## TODO -- Tracing - - Skywalking - Prometheus Exporter - rabbitmq_exporter - node_exporter diff --git a/docker-compose-tracing.yml b/docker-compose-tracing.yml index e69de29..9f29455 100644 --- a/docker-compose-tracing.yml +++ b/docker-compose-tracing.yml @@ -0,0 +1,59 @@ +version: '3.8' +services: + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.4.2 + container_name: elasticsearch + ports: + - "9200:9200" + healthcheck: + test: [ "CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + environment: + - discovery.type=single-node + - bootstrap.memory_lock=true + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + ulimits: + memlock: + soft: -1 + hard: -1 + + oap: + image: skywalking/oap:latest + container_name: oap + depends_on: + elasticsearch: + condition: service_healthy + links: + - elasticsearch + ports: + - "11800:11800" + - "12800:12800" + healthcheck: + test: [ "CMD-SHELL", "/skywalking/bin/swctl ch" ] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + environment: + SW_STORAGE: elasticsearch + SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200 + SW_HEALTH_CHECKER: default + SW_TELEMETRY: prometheus + JAVA_OPTS: "-Xms2048m -Xmx2048m" + + ui: + image: skywalking/ui:latest + container_name: ui + depends_on: + oap: + condition: service_healthy + links: + - oap + ports: + - "8080:8080" + environment: + SW_OAP_ADDRESS: http://oap:12800 + SW_ZIPKIN_ADDRESS: http://oap:9412 \ No newline at end of file