Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Created December 24, 2015 04:20
Show Gist options
  • Select an option

  • Save mrlesmithjr/d835afac80a5157fee1f to your computer and use it in GitHub Desktop.

Select an option

Save mrlesmithjr/d835afac80a5157fee1f to your computer and use it in GitHub Desktop.
---
- name: Spins up an ELK Stack Docker environment
hosts: all
sudo: true
vars:
roles:
tasks:
- name: Spin up Elasticsearch
docker:
name: elasticsearch
image: mrlesmithjr/elasticsearch:2.1
state: started
ports:
- "9200:9200"
- name: Spin up Kibana
docker:
name: kibana
image: mrlesmithjr/elk-kibana:4.3.1
state: started
links:
- "elasticsearch:elasticsearch"
ports:
- "5601:5601"
- name: Spin up Redis
docker:
name: redis
image: mrlesmithjr/redis
state: started
ports:
- "6379:6379"
- name: Spin up ELK Pre-Processor
docker:
name: elk-pre-processor
image: mrlesmithjr/elk-pre-processor:2.1
state: started
links:
- "redis:redis"
ports:
- "514:514"
- "514:514/udp"
- "1515:1515"
- "3515:3515"
- "3525:3525"
- "10514:10514"
- name: Spin up ELK Processor
docker:
name: elk-processor
image: mrlesmithjr/elk-processor:2.1
state: started
links:
- "elasticsearch:elasticsearch"
- "redis:redis"
@mrlesmithjr
Copy link
Copy Markdown
Author

If you want to run this on your Docker host you can run it local if you would like.
ansible-playbook -i "localhost," -c local elkstack_docker.yml

@mrlesmithjr
Copy link
Copy Markdown
Author

Need to spin up a Docker host???
https://github.com/mrlesmithjr/ansible-docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment