Created
December 24, 2015 04:20
-
-
Save mrlesmithjr/d835afac80a5157fee1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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