Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22b4472
commit 6b76e37
Showing
12 changed files
with
343 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Secret will be used to sign session cookies, CSRF tokens and for other encryption utilities. | ||
# It is highly recommended to change this value before running cerebro in production. | ||
secret = "ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N" | ||
|
||
# Application base path | ||
basePath = "/" | ||
|
||
# Defaults to RUNNING_PID at the root directory of the app. | ||
# To avoid creating a PID file set this value to /dev/null | ||
#pidfile.path = "/var/run/cerebro.pid" | ||
pidfile.path=/dev/null | ||
|
||
# Rest request history max size per user | ||
rest.history.size = 50 // defaults to 50 if not specified | ||
|
||
# Path of local database file | ||
#data.path: "/var/lib/cerebro/cerebro.db" | ||
data.path = "./cerebro.db" | ||
|
||
es = { | ||
gzip = true | ||
} | ||
|
||
# Authentication | ||
auth = { | ||
# Example of LDAP authentication | ||
#type: ldap | ||
#settings: { | ||
#url = "ldap://host:port" | ||
#base-dn = "ou=active,ou=Employee" | ||
# OpenLDAP might be something like | ||
#base-dn = "ou=People,dc=domain,dc=com" | ||
# Usually method should be left as simple | ||
# Otherwise, set it to the SASL mechanisms to try | ||
#method = "simple" | ||
# Usernames in the form of email addresses (containing @) are passed through unchanged | ||
# Set user-domain to append @user-domain to bare usernames | ||
#user-domain = "domain.com" | ||
# Or leave empty to use user-format formatting | ||
#user-domain = "" | ||
# user-format executes a string.format() operation where | ||
# username is passed in first, followed by base-dn | ||
# Leave username unchanged | ||
#user-format = "%s" | ||
# Like setting user-domain | ||
#user-format = "%s@domain.com" | ||
# Common for OpenLDAP | ||
#user-format = "uid=%s,%s" | ||
#} | ||
# Example of simple username/password authentication | ||
#type: basic | ||
#settings: { | ||
#username = "admin" | ||
#password = "1234" | ||
#} | ||
} | ||
|
||
# A list of known hosts | ||
hosts = [ | ||
#{ | ||
# host = "http://localhost:9200" | ||
# name = "Some Cluster" | ||
#}, | ||
# Example of host with authentication | ||
#{ | ||
# host = "http://some-authenticated-host:9200" | ||
# name = "Secured Cluster" | ||
# auth = { | ||
# username = "username" | ||
# password = "secret-password" | ||
# } | ||
#} | ||
{ | ||
host = "http://elasticsearch:9200" | ||
name = "Main Cluster" | ||
} | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
# ---------------------------------------- | ||
# --- Enrich ELK stack with Cerebro | ||
# ---------------------------------------- | ||
|
||
cerebro: | ||
container_name: cerebro | ||
image: yannart/cerebro:0.8.1 # see https://hub.docker.com/r/yannart/cerebro/ | ||
ports: | ||
- "9000:9000" | ||
volumes: | ||
- ./cerebro/cerebro.conf:/opt/cerebro/conf/application.conf:ro |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
# ---------------------------------------- | ||
# --- ELK stack | ||
# ---------------------------------------- | ||
|
||
elasticsearch: | ||
container_name: elasticsearch | ||
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.2 # see https://hub.docker.com/_/elasticsearch/ | ||
ports: | ||
- "9200:9200" | ||
- "9300:9300" | ||
volumes: | ||
- ~/manon-elastic-db:/usr/share/elasticsearch/data | ||
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro | ||
environment: | ||
ES_JAVA_OPTS: "-Xms32m -Xmx256m" | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
|
||
logstash: | ||
container_name: logstash | ||
image: docker.elastic.co/logstash/logstash-oss:6.5.2 # see https://hub.docker.com/_/logstash/ | ||
ports: | ||
- "5000:5000" | ||
- "9600:9600" | ||
volumes: | ||
- ~/manon-app-logs/:/manon-app/ | ||
- ~/manon-nginx-logs/:/manon-nginx/ | ||
- ./logstash/logstash.yml:/usr/share/logstash/config/logstash.yml:ro | ||
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro | ||
environment: | ||
LS_JAVA_OPTS: "-Xms32m -Xmx256m" | ||
depends_on: | ||
- elasticsearch | ||
|
||
kibana: | ||
container_name: kibana | ||
image: docker.elastic.co/kibana/kibana-oss:6.5.2 # see https://hub.docker.com/_/kibana/ | ||
ports: | ||
- "5601:5601" | ||
volumes: | ||
- ./kibana:/usr/share/kibana/config:ro | ||
depends_on: | ||
- elasticsearch |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
## Default Elasticsearch configuration from elasticsearch-docker. | ||
## from https://github.com/elastic/elasticsearch-docker/blob/master/build/elasticsearch/elasticsearch.yml | ||
# | ||
cluster.name: "docker-cluster" | ||
network.host: 0.0.0.0 | ||
|
||
# minimum_master_nodes need to be explicitly set when bound on a public IP | ||
# set to 1 to allow single node clusters | ||
# Details: https://github.com/elastic/elasticsearch/pull/17288 | ||
discovery.zen.minimum_master_nodes: 1 | ||
|
||
## Use single node discovery in order to disable production mode and avoid bootstrap checks | ||
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html | ||
# | ||
discovery.type: single-node |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
## Default Kibana configuration from kibana-docker. | ||
## from https://github.com/elastic/kibana-docker/blob/master/build/kibana/config/kibana.yml | ||
# | ||
server.name: kibana | ||
server.host: "0" | ||
elasticsearch.url: http://elasticsearch:9200 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
## Default Logstash configuration from logstash-docker. | ||
## from https://github.com/elastic/logstash-docker/blob/master/build/logstash/config/logstash-oss.yml | ||
# | ||
http.host: "0.0.0.0" | ||
path.config: /usr/share/logstash/pipeline |
Oops, something went wrong.