Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.07 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.07 KB

Default

This is docker image for elasticsearch 5.5.1 without x-pack plugin.

Default ENV on image

ENV http.host 0.0.0.0
ENV transport.host 127.0.0.1

Warning! If your user id is not 1000 you need to create directory and set full permission on it.

mkdir elastic-search
chmod 777 elastic-search

Default

docker run -it -v `pwd`/elastic-search:/usr/share/elasticsearch/data dawidoFed/docker-elasticsearch:latest

Docker compose

version: '1'
services:
  search:
    image: dawidofed/docker-elasticsearch:latest
    volumes:
      - ./elastic-search:/usr/share/elasticsearch/data

Docker stack

version: '3'
services:
  search:
    image: dawidofed/docker-elasticsearch:latest
    volumes:
      - ./elastic-search:/usr/share/elasticsearch/data
    deploy:
      mode: global

ENV override

version: '2'
services:
  search:
    image: dawidofed/docker-elasticsearch:latest
    volumes:
      - ./elastic-search:/usr/share/elasticsearch/data
    environment:
      - "http.host=0.0.0.0"