-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
b302c94
commit c50c2ff
Showing
18 changed files
with
602 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
ELK_VERSION=7.17.0 | ||
ELASTIC_VERSION=8.13.2 | ||
|
||
## Passwords for stack users | ||
# | ||
|
||
# User 'elastic' (built-in) | ||
# | ||
# Superuser role, full access to cluster management and data indices. | ||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html | ||
ELASTIC_PASSWORD='changeme' | ||
|
||
# User 'logstash_internal' (custom) | ||
# | ||
# The user Logstash uses to connect and send data to Elasticsearch. | ||
# https://www.elastic.co/guide/en/logstash/current/ls-security.html | ||
LOGSTASH_INTERNAL_PASSWORD='changeme' | ||
|
||
# User 'kibana_system' (built-in) | ||
# | ||
# The user Kibana uses to connect and communicate with Elasticsearch. | ||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html | ||
KIBANA_SYSTEM_PASSWORD='changeme' |
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,6 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG ELK_VERSION | ||
ARG ELASTIC_VERSION | ||
|
||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION} | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} | ||
|
||
# Add your elasticsearch plugins setup here | ||
# Example: RUN elasticsearch-plugin install analysis-icu |
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
--- | ||
## Default Elasticsearch configuration from Elasticsearch base image. | ||
## https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml | ||
## https://github.com/elastic/elasticsearch/blob/main/distribution/docker/src/docker/config/elasticsearch.yml | ||
# | ||
cluster.name: "docker-cluster" | ||
cluster.name: docker-cluster | ||
network.host: 0.0.0.0 | ||
|
||
## X-Pack settings | ||
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html | ||
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html | ||
# | ||
xpack.license.self_generated.type: trial | ||
xpack.security.enabled: true | ||
xpack.monitoring.collection.enabled: true |
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 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG ELK_VERSION | ||
ARG ELASTIC_VERSION | ||
|
||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/kibana/kibana:${ELK_VERSION} | ||
FROM docker.elastic.co/kibana/kibana:${ELASTIC_VERSION} | ||
|
||
# Add your kibana plugins setup here | ||
# Example: RUN kibana-plugin install <name|url> |
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 |
---|---|---|
@@ -1,13 +1,99 @@ | ||
--- | ||
## Default Kibana configuration from Kibana base image. | ||
## https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/templates/kibana_yml.template.ts | ||
## https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/templates/kibana_yml.template.ts | ||
# | ||
server.name: kibana | ||
server.host: 0.0.0.0 | ||
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
elasticsearch.hosts: [ http://elasticsearch:9200 ] | ||
|
||
monitoring.ui.container.elasticsearch.enabled: true | ||
monitoring.ui.container.logstash.enabled: true | ||
|
||
## X-Pack security credentials | ||
# | ||
elasticsearch.username: elastic | ||
elasticsearch.password: changeme | ||
elasticsearch.username: kibana_system | ||
elasticsearch.password: ${KIBANA_SYSTEM_PASSWORD} | ||
|
||
## Encryption keys (optional but highly recommended) | ||
## | ||
## Generate with either | ||
## $ docker container run --rm docker.elastic.co/kibana/kibana:8.6.2 bin/kibana-encryption-keys generate | ||
## $ openssl rand -hex 32 | ||
## | ||
## https://www.elastic.co/guide/en/kibana/current/using-kibana-with-security.html | ||
## https://www.elastic.co/guide/en/kibana/current/kibana-encryption-keys.html | ||
# | ||
#xpack.security.encryptionKey: | ||
#xpack.encryptedSavedObjects.encryptionKey: | ||
#xpack.reporting.encryptionKey: | ||
|
||
## Fleet | ||
## https://www.elastic.co/guide/en/kibana/current/fleet-settings-kb.html | ||
# | ||
xpack.fleet.agents.fleet_server.hosts: [ http://fleet-server:8220 ] | ||
|
||
xpack.fleet.outputs: | ||
- id: fleet-default-output | ||
name: default | ||
type: elasticsearch | ||
hosts: [ http://elasticsearch:9200 ] | ||
is_default: true | ||
is_default_monitoring: true | ||
|
||
xpack.fleet.packages: | ||
- name: fleet_server | ||
version: latest | ||
- name: system | ||
version: latest | ||
- name: elastic_agent | ||
version: latest | ||
- name: docker | ||
version: latest | ||
- name: apm | ||
version: latest | ||
|
||
xpack.fleet.agentPolicies: | ||
- name: Fleet Server Policy | ||
id: fleet-server-policy | ||
description: Static agent policy for Fleet Server | ||
monitoring_enabled: | ||
- logs | ||
- metrics | ||
package_policies: | ||
- name: fleet_server-1 | ||
package: | ||
name: fleet_server | ||
- name: system-1 | ||
package: | ||
name: system | ||
- name: elastic_agent-1 | ||
package: | ||
name: elastic_agent | ||
- name: docker-1 | ||
package: | ||
name: docker | ||
- name: Agent Policy APM Server | ||
id: agent-policy-apm-server | ||
description: Static agent policy for the APM Server integration | ||
monitoring_enabled: | ||
- logs | ||
- metrics | ||
package_policies: | ||
- name: system-1 | ||
package: | ||
name: system | ||
- name: elastic_agent-1 | ||
package: | ||
name: elastic_agent | ||
- name: apm-1 | ||
package: | ||
name: apm | ||
# See the APM package manifest for a list of possible inputs. | ||
# https://github.com/elastic/apm-server/blob/v8.5.0/apmpackage/apm/manifest.yml#L41-L168 | ||
inputs: | ||
- type: apm | ||
vars: | ||
- name: host | ||
value: 0.0.0.0:8200 | ||
- name: url | ||
value: http://apm-server:8200 |
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 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG ELK_VERSION | ||
ARG ELASTIC_VERSION | ||
|
||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/logstash/logstash:${ELK_VERSION} | ||
FROM docker.elastic.co/logstash/logstash:${ELASTIC_VERSION} | ||
|
||
# Add your logstash plugins setup here | ||
# Example: RUN logstash-plugin install logstash-filter-json |
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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
--- | ||
## Default Logstash configuration from Logstash base image. | ||
## https://github.com/elastic/logstash/blob/master/docker/data/logstash/config/logstash-full.yml | ||
## https://github.com/elastic/logstash/blob/main/docker/data/logstash/config/logstash-full.yml | ||
# | ||
http.host: "0.0.0.0" | ||
xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
http.host: 0.0.0.0 | ||
|
||
## X-Pack security credentials | ||
# | ||
xpack.monitoring.enabled: true | ||
xpack.monitoring.elasticsearch.username: elastic | ||
xpack.monitoring.elasticsearch.password: changeme | ||
node.name: logstash |
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,9 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store | ||
|
||
# Ignore Git files | ||
.gitignore |
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 @@ | ||
ARG ELASTIC_VERSION | ||
|
||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
Oops, something went wrong.