Deploying SkyWalking Using Docker Compose

  1. Docker Installation

Reefrence: https://www.cnblogs.com/a120608yby/p/9883175.html2. Docker Compose Installation

Reference: https://www.cnblogs.com/a120608yby/p/14582853.html3. Service Configuraton

# edit docker-compose.yml 
version: '3.8'
services:
  es:
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.4.2
    container_name: es
    restart: always
    ports:
      - "9200:9200"
    networks:
      - net_default
    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=-Xms1024m -Xmx1024m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - ./data:/usr/share/elasticsearch/data
      - /etc/localtime:/etc/localtime:ro

  backend:
    image: apache/skywalking-oap-server:latest
    container_name: backend
    restart: always
    depends_on:
      es:
        condition: service_healthy
    links:
      - es
    ports:
      - "11800:11800"
      - "12800:12800"
    networks:
      - net_default
    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: es:9200
      SW_HEALTH_CHECKER: default
      SW_TELEMETRY: prometheus
      JAVA_OPTS: "-Xms2048m -Xmx2048m"
    volumes:
      - /etc/localtime:/etc/localtime:ro

  frontend:
    image: apache/skywalking-ui:latest
    container_name: frontend
    restart: always
    depends_on:
      backend:
        condition: service_healthy
    links:
      - backend
    ports:
      - "8080:8080"
    networks:
      - net_default
    environment:
      SW_OAP_ADDRESS: http://backend:12800
    volumes:
      - /etc/localtime:/etc/localtime:ro

networks:
  net_default:
    external: true

  1. Start Services
docker-compose up -d

  1. Check Service Status
docker-compose ps

Reference:

https://github.com/apache/skywalking/tree/master/docker

Tags: docker skywalking elasticsearch containerization Microservices Monitoring

Posted on Wed, 05 Aug 2026 16:45:43 +0000 by glory452