docker-compose修改es端口

docker-compose修改es端口,第1张

docker-compose修改es端口
services:
  elasticsearch:
    restart: always
    image: elasticsearch:6.5.4
    container_name: elasticsearch
    environment:
      - http.port=9201
      - transport.tcp.port=9301
    ports:
      - 9201:9201
    volumes:
      - ./elasticsearch/plugins/elasticsearch-analysis-ik:/usr/share/elasticsearch/plugins/elasticsearch-analysis-ik
      - ./elasticsearch/data:/usr/share/elasticsearch/data

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4666623.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-06
下一篇 2022-11-06

发表评论

登录后才能评论

评论列表(0条)

保存