docker-compose 一鍵部署elasticsearch(單機(jī)模式) + skywalking

1. 目錄結(jié)構(gòu)

image

2. docker-compose.yml內(nèi)容


# Licensed to the Apache Software Foundation (ASF) under one

# or more contributor license agreements.  See the NOTICE file

# distributed with this work for additional information

# regarding copyright ownership.  The ASF licenses this file

# to you under the Apache License, Version 2.0 (the

# "License"); you may not use this file except in compliance

# with the License.  You may obtain a copy of the License at

#

#    http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

version: '3.3'

services:

  elasticsearch:

    image: docker.elastic.co/elasticsearch/elasticsearch:6.8.1

    container_name: elasticsearch

    restart: always

    ports:

      - 9200:9200

      - 9300:9300

    environment:

      - cluster.name=skywalkingDb

      #- discovery.type=single-node

      - bootstrap.memory_lock=true

      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"

      - TZ=Asia/Shanghai

    volumes:

      - ./elasticsearch/logs:/usr/share/elasticsearch/logs

      - ./elasticsearch/data:/usr/share/elasticsearch/data

      - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml

    ulimits:

      memlock:

        soft: -1

        hard: -1

  es-head:

    image: docker.io/mobz/elasticsearch-head:5

    container_name: es-head

    ports:

      - 9100:9100

    links:

      - elasticsearch

  oap:

    image: apache/skywalking-oap-server:6.5.0

    container_name: oap

    depends_on:

      - elasticsearch

    links:

      - elasticsearch

    restart: always

    ports:

      - 11800:11800

      - 12800:12800

    environment:

      SW_STORAGE: elasticsearch

      SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200

      TZ: Asia/Shanghai

    ui:

      image: apache/skywalking-ui:6.5.0

      container_name: ui

      depends_on:

        - oap

      links:

        - oap

      restart: always

      ports:

        - 18080:8080

      environment:

        SW_OAP_ADDRESS: oap:12800

        TZ: Asia/Shanghai

3. elasticsearch 配置文件 elasticsearch.yml內(nèi)容

cluster.name: skywalkingDb

node.name: es-node-1

node.master: true

node.data: true

http.port: 9200

transport.tcp.port: 9300

network.bind_host: 0.0.0.0

network.host: 0.0.0.0

network.publish_host: 0.0.0.0

http.cors.enabled: true

http.cors.allow-origin: "*"

http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type

4. 啟動

docker-compose up -d

5. 瀏覽器訪問skywalking-ui地址 http://localhost:18080

image

6. 參考內(nèi)容

官網(wǎng)中文文檔:https://github.com/apache/skywalking/blob/v5.0.0-GA/docs/README_ZH.md

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市舔痪,隨后出現(xiàn)的幾起案子朵夏,更是在濱河造成了極大的恐慌,老刑警劉巖寝殴,帶你破解...
    沈念sama閱讀 221,635評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異明垢,居然都是意外死亡蚣常,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,543評論 3 399
  • 文/潘曉璐 我一進(jìn)店門痊银,熙熙樓的掌柜王于貴愁眉苦臉地迎上來抵蚊,“玉大人,你說我怎么就攤上這事≌晟” “怎么了谷醉?”我有些...
    開封第一講書人閱讀 168,083評論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長冈闭。 經(jīng)常有香客問我俱尼,道長,這世上最難降的妖魔是什么萎攒? 我笑而不...
    開封第一講書人閱讀 59,640評論 1 296
  • 正文 為了忘掉前任遇八,我火速辦了婚禮,結(jié)果婚禮上耍休,老公的妹妹穿的比我還像新娘刃永。我一直安慰自己,他們只是感情好羹应,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,640評論 6 397
  • 文/花漫 我一把揭開白布揽碘。 她就那樣靜靜地躺著,像睡著了一般园匹。 火紅的嫁衣襯著肌膚如雪雳刺。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,262評論 1 308
  • 那天裸违,我揣著相機(jī)與錄音掖桦,去河邊找鬼。 笑死供汛,一個胖子當(dāng)著我的面吹牛枪汪,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播怔昨,決...
    沈念sama閱讀 40,833評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼雀久,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了趁舀?” 一聲冷哼從身側(cè)響起赖捌,我...
    開封第一講書人閱讀 39,736評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎矮烹,沒想到半個月后越庇,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,280評論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡奉狈,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,369評論 3 340
  • 正文 我和宋清朗相戀三年卤唉,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片仁期。...
    茶點(diǎn)故事閱讀 40,503評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡桑驱,死狀恐怖竭恬,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情熬的,我是刑警寧澤萍聊,帶...
    沈念sama閱讀 36,185評論 5 350
  • 正文 年R本政府宣布,位于F島的核電站悦析,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏此衅。R本人自食惡果不足惜强戴,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,870評論 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望挡鞍。 院中可真熱鬧骑歹,春花似錦、人聲如沸墨微。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,340評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽翘县。三九已至趴梢,卻和暖如春搁胆,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,460評論 1 272
  • 我被黑心中介騙來泰國打工簇抵, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人奶段。 一個月前我還...
    沈念sama閱讀 48,909評論 3 376
  • 正文 我出身青樓微峰,卻偏偏與公主長得像,于是被迫代替她去往敵國和親氓奈。 傳聞我的和親對象是個殘疾皇子翘魄,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,512評論 2 359