Skip to content

Instantly share code, notes, and snippets.

@arubis
Created October 30, 2014 21:57
Show Gist options
  • Save arubis/c7f97ba7255ce8fd0b44 to your computer and use it in GitHub Desktop.
Save arubis/c7f97ba7255ce8fd0b44 to your computer and use it in GitHub Desktop.
elasticsearch-docker.sls
dockerfile/elasticsearch:
docker.pulled:
- name: dockerfile/elasticsearch
- require_in: elasticsearch-container
elasticsearch-container:
docker.installed:
- name: elasticsearch
- hostname: elasticsearch
- image: dockerfile/elasticsearch
- require_in: elasticsearch
/data/elasticsearch:
file.directory:
- mode: '0755'
- makedirs: True
/data/elasticsearch/elasticsearch.yml:
file.managed:
- mode: '0644'
- contents: |
path:
logs: /data/log
data: /data/data
elasticsearch:
docker.running:
- container: elasticsearch
- volumes:
- /data/elasticsearch/: /data/
- port_bindings:
"9200/tcp":
HostIp: ""
HostPort: "9200"
"9300/tcp":
HostIp: ""
HostPort: "9300"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment