Skip to content

Instantly share code, notes, and snippets.

@mloc
Created September 29, 2017 09:29
Show Gist options
  • Save mloc/37815f52ac1ea01c7c4ac043894ea703 to your computer and use it in GitHub Desktop.
Save mloc/37815f52ac1ea01c7c4ac043894ea703 to your computer and use it in GitHub Desktop.
---
-
become: true
hosts: all
tasks:
-
name: "elasticsearch"
docker_container:
name: elasticsearch
docker_host: "{{docker_host|default()}}"
image: "docker.elastic.co/elasticsearch/elasticsearch:5.6.2"
env:
"http.host": "0.0.0.0"
"xpack.security.enabled": "false"
ports:
- "127.0.0.1:9200:9200"
-
name: "logstash"
docker_container:
name: logstash
docker_host: "{{docker_host|default()}}"
image: "docker.elastic.co/elasticsearch/elasticsearch:5.6.2"
-
name: "ELK network"
docker_network:
name: elk
docker_host: "{{docker_host|default()}}"
connected:
- elasticsearch
- logstash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment