elasticsearch的docker制作

Dockerfile文件

FROM xx:port/cx/elasticsearch:7.6.2

MAINTAINER xxx Team

ENV LANG C.UTF-8
ENV TZ Asia/Shanghai

COPY config/elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml

build-cx-elasticsearch.sh

#!/bin/sh

docker build -t xxx:18880/cx/es:7.6.2 .
docker push xxx:18880/cx/es:7.6.2

config/elasticsearch.yml

network.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"

你可能感兴趣的:(Elasticsearch,elasticsearch,docker,搜索引擎)