1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| elasticsearch: container_name: gw-es image: registry.cn-hangzhou.aliyuncs.com/zhengqing/elasticsearch:7.14.1 volumes: - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml - ./elasticsearch/logs/elasticsearch.log:/usr/share/elasticsearch/logs/elasticsearch.log - ./elasticsearch/data:/usr/share/elasticsearch/data - ./elasticsearch/plugins:/usr/share/elasticsearch/plugins ports: - "39200:9200" - "39300:9300" environment: - discovery.type=single-node - ES_JAVA_OPTS=-Xms512m -Xmx1024m - ELASTIC_PASSWORD= "123456" networks: - gw_net restart: always kibana: image: registry.cn-hangzhou.aliyuncs.com/zhengqing/kibana:7.14.1 container_name: gw-kibana restart: always volumes: - ./elasticsearch/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml ports: - "5601:5601" depends_on: - elasticsearch links: - elasticsearch networks: - gw_net
|