Skip to content

Commit

Permalink
Merge pull request #75 from FEISystems/enhancement/add-sample-elk-set…
Browse files Browse the repository at this point in the history
…up-for-qa

Enhancement/add-sample-elk-setup-for-qa
  • Loading branch information
Sadhch authored Oct 26, 2017
2 parents 2b83e0a + 0229e39 commit 72c0ef3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
38 changes: 38 additions & 0 deletions infrastructure/deployment/elk/docker-compose-elk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a sample ELK Stack infrastructure setup for the QA environment.
# Please consult to an ELK Stack expert for production grade security and configuration.
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0
environment:
- discovery.type=single-node
- xpack.security.enabled=false
mem_limit: 4000m
restart: always
kibana:
image: docker.elastic.co/kibana/kibana:5.6.0
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
# kibana port may not be needed to be exposed if routed via a reverse proxy
# ports:
# - "5601:5601"
mem_limit: 2000m
restart: always
logstash:
image: docker.elastic.co/logstash/logstash:5.6.0
# logstash input port may not be needed to be exposed if it is accessible by log forwarders via Docker networking
# ports:
# - "5000:5000"
mem_limit: 2000m
restart: always
command: -e 'input { tcp { port => 5000 codec => "json" } } output { elasticsearch { hosts => ["elasticsearch"] user => "elastic" password => "changeme"} }'
admin-gateway.c2s.com:
image: bhits/admin-gateway:${ADMIN_GATEWAY_VERSION}
ports:
- "8472:8472"
mem_limit: 2000m
restart: always
environment:
- security.user.password=${C2S_SYSTEM_ADMIN_PASSWORD}
- JAVA_OPTS=-Xms512m -Xmx700m -Xss1m
- TZ="US/Eastern"
10 changes: 10 additions & 0 deletions infrastructure/deployment/elk/kibana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# Default Kibana configuration from kibana-docker.

server.name: kibana
server.host: "0"
server.basePath: /logs
elasticsearch.url: http://elasticsearch:9200
elasticsearch.username: elastic
elasticsearch.password: changeme
xpack.monitoring.ui.container.elasticsearch.enabled: true

0 comments on commit 72c0ef3

Please sign in to comment.