https://github.com/apache/skywalking-docker/tree/master/6/6.2
https://hub.docker.com/r/apache/skywalking-oap-server
https://hub.docker.com/r/apache/skywalking-ui
mkdir /opt/skywalking-oap-server
vim /opt/skywalking-oap-server/Dockerfile
FROM apache/skywalking-oap-server:6.2.0 EXPOSE 11800 12800
vim /opt/skywalking-oap-server/docker-compose.yml
version: '3.3' services: oap: image: skywalking-oap-server restart: always container_name: skywalking-oap-server build: context: . dockerfile: Dockerfile restart: always ports: - 11800:11800 - 12800:12800 environment: SW_STORAGE: elasticsearch SW_STORAGE_ES_CLUSTER_NODES: 127.0.0.1:9200
cd /opt/skywalking-oap-server
docker-compose build
docker-compose up -d --force-recreate
docker-compose down
docker-compose restart
查看日志
docker logs --tail="500" skywalking-oap-server
进入容器
docker exec -it skywalking-oap-server /bin/bash
mkdir /opt/skywalking-ui
vim /opt/skywalking-ui/Dockerfile
FROM apache/skywalking-ui:6.2.0 EXPOSE 8080
vim /opt/skywalking-ui/docker-compose.yml
version: '3.3' services: oap: image: skywalking-ui restart: always container_name: skywalking-ui build: context: . dockerfile: Dockerfile restart: always ports: - 18080:8080 environment: SW_OAP_ADDRESS: 127.0.0.1:12800
cd /opt/skywalking-ui
docker-compose build
docker-compose up -d --force-recreate
docker-compose down
docker-compose restart
查看日志
docker logs --tail="500" skywalking-ui
进入容器
docker exec -it skywalking-ui /bin/bash