docker-compose运行elasticsearch+elastichd
version: '3'services: elasticsearch: image: elasticsearch:7.5.1 container_name: elasticsearch networks: - net-es volumes: - ./data/:/usr/share/elasticsearch/data #这里将elasticsearch的数据文件映射本地,以保证下次如果删除了容器还有数据 environment:
原创
2020-10-28 15:17:25 ·
768 阅读 ·
0 评论