docker部署elasticsearch和xpack密碼的詳細(xì)過(guò)程
鏡像地址
https://hub.docker.com/_/elasticsearch
單節(jié)點(diǎn)部署
登陸用戶名
elastic,密碼:elastic@123
bootstrapPassword.txt
該文件保存的是密碼
elastic@123
docker-compose.yml
version: '3'
services:
elasticsearch:
image: elasticsearch:7.12.0
container_name: elasticsearch
privileged: true
networks:
- default
ports:
- 9200:9200
- 9300:9300
environment:
discovery.type: single-node
cluster.name: elasticsearch
xpack.security.enabled: true
ELASTIC_PASSWORD_FILE: /run/secrets/bootstrapPassword.txt
volumes:
- "./data:/usr/share/elasticsearch/data"
- ./bootstrapPassword.txt:/run/secrets/bootstrapPassword.txt
networks:
default:
external:
name: huzhihui
運(yùn)行
docker-compose up -d
- 出現(xiàn)下面日志表示部署成功

集群部署
文檔:Running the Elastic Stack on Docker | Getting Started [7.17] | Elastic
按照步驟來(lái)即可,簡(jiǎn)單的。
到此這篇關(guān)于使用docker部署elasticsearch和xpack密碼的詳細(xì)過(guò)程的文章就介紹到這了,更多相關(guān)docker部署elasticsearch和xpack內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
如何利用Docker容器實(shí)現(xiàn)代理轉(zhuǎn)發(fā)與數(shù)據(jù)備份詳解
這篇文章主要給大家介紹了關(guān)于如何利用Docker容器實(shí)現(xiàn)代理轉(zhuǎn)發(fā)與數(shù)據(jù)備份的相關(guān)資料,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2018-10-10
docker安裝Jenkins執(zhí)行構(gòu)建jar運(yùn)行方式
這篇文章主要介紹了docker安裝Jenkins執(zhí)行構(gòu)建jar運(yùn)行方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2024-05-05
docker發(fā)布sunnyNgrok實(shí)現(xiàn)內(nèi)外網(wǎng)穿透的方法(容器內(nèi)執(zhí)行命令)
這篇文章主要介紹了docker上發(fā)布 sunnyNgrok 實(shí)現(xiàn)內(nèi)外網(wǎng)穿透,容器內(nèi)執(zhí)行命令,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2023-03-03
Docker Compose 搭建簡(jiǎn)單的Python網(wǎng)絡(luò)應(yīng)用程序(步驟詳解)
在這個(gè)頁(yè)面上,你可以建立一個(gè)簡(jiǎn)單的Python網(wǎng)絡(luò)應(yīng)用程序,運(yùn)行在Docker Compose上,這篇文章主要介紹了Docker Compose 搭建簡(jiǎn)單的Python網(wǎng)絡(luò)應(yīng)用程序,需要的朋友可以參考下2022-07-07
關(guān)于dockerfile build過(guò)程中報(bào)/bin/sh: pip: command not found的解決方法
這篇文章主要介紹了關(guān)于dockerfile build過(guò)程中報(bào)/bin/sh: pip: command not found的解決方法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-03-03

