forked from community/entgra-elk
parent
aee6ab81a2
commit
b1a37616dc
@ -1,12 +1,3 @@
|
||||
## Instructions
|
||||
|
||||
1. Pull the filebeat image
|
||||
```bash
|
||||
docker pull docker.elastic.co/beats/filebeat:8.2.0
|
||||
```
|
||||
Note: Change the filebeat image name or tag in Dockerfile related to the pulled version.
|
||||
|
||||
3. Build the Docker image
|
||||
```bash
|
||||
docker build -t filebeat:8.2.0-entgra-v1 .
|
||||
```
|
||||
Note: cd to the exact directory and build the images.
|
||||
|
@ -0,0 +1,5 @@
|
||||
FROM docker.elastic.co/elasticsearch/elasticsearch:8.2.0
|
||||
|
||||
RUN rm -Rf /usr/share/elasticsearch/config/elasticsearch.yml
|
||||
|
||||
COPY elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml
|
@ -0,0 +1,12 @@
|
||||
## Instructions
|
||||
|
||||
1. Pull the elasticsearch image
|
||||
```bash
|
||||
docker pull docker.elastic.co/elasticsearch/elasticsearch:8.2.0
|
||||
```
|
||||
Note: Change the required image version name or tag in the Dockerfile.
|
||||
|
||||
3. Build the Docker image
|
||||
```bash
|
||||
docker build -t elasticsearch:8.2.0-entgra-v1 .
|
||||
```
|
@ -0,0 +1,32 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
elasticsearch:
|
||||
image: elasticsearch:8.2.0-entgra-v2
|
||||
container_name: elasticsearch
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Asia/Colombo
|
||||
- discovery.type=single-node
|
||||
- xpack.security.enabled=false
|
||||
- bootstrap.memory_lock=true
|
||||
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
||||
volumes:
|
||||
# - ./files/data:/opt/data
|
||||
# - ./files/backup:/opt/backup
|
||||
# - ./files/configs:/opt/config
|
||||
# - ./files/logs:/opt/logs
|
||||
- ./files/data:/usr/share/elasticsearch/data
|
||||
- ./files/backup:/usr/share/elasticsearch/backup
|
||||
# - ./files/configs:/usr/share/elasticsearch/config
|
||||
- ./files/logs:/usr/share/elasticsearch/logs
|
||||
ports:
|
||||
- "9200:9200"
|
||||
# networks:
|
||||
# - bridge_net
|
||||
healthcheck:
|
||||
test: curl --fail http://localhost:9200/ || exit 1
|
||||
interval: 60s
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
timeout: 10s
|
@ -0,0 +1,8 @@
|
||||
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
|
||||
path.repo: ["/usr/share/elasticsearch/backup"]
|
@ -0,0 +1,20 @@
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Ignore everything in this directory
|
||||
.classpath
|
||||
.settings
|
||||
.project
|
||||
*.iml
|
||||
*.iws
|
||||
*.ipr
|
||||
.idea
|
||||
*.ids
|
||||
.editorconfig
|
||||
.gradle
|
||||
|
||||
# Mac crap
|
||||
.DS_Store
|
@ -0,0 +1,12 @@
|
||||
## Instructions
|
||||
|
||||
1. Pull the filebeat image
|
||||
```bash
|
||||
docker pull docker.elastic.co/beats/filebeat:8.2.0
|
||||
```
|
||||
Note: Change the required image version name or tag in the Dockerfile.
|
||||
|
||||
3. Build the Docker image
|
||||
```bash
|
||||
docker build -t filebeat:8.2.0-entgra-v1 .
|
||||
```
|
@ -0,0 +1,3 @@
|
||||
FROM docker.elastic.co/kibana/kibana:8.2.0
|
||||
|
||||
COPY kibana.yml /usr/share/kibana/kibana.yml
|
@ -0,0 +1,12 @@
|
||||
## Instructions
|
||||
|
||||
1. Pull the filebeat image
|
||||
```bash
|
||||
docker pull docker.elastic.co/kibana/kibana:8.2.0
|
||||
```
|
||||
Note: Change the required image version name or tag in the Dockerfile.
|
||||
|
||||
3. Build the Docker image
|
||||
```bash
|
||||
docker build -t kibana:8.2.0-entgra-v1 .
|
||||
```
|
@ -0,0 +1,15 @@
|
||||
security.showInsecureClusterWarning: false
|
||||
monitoring.ui.container.elasticsearch.enabled: true
|
||||
logging.quiet: true
|
||||
logging.verbose: false
|
||||
|
||||
logging:
|
||||
appenders:
|
||||
rolling-file:
|
||||
type: rolling-file
|
||||
fileName: /var/logs/kibana/kibana.log
|
||||
policy:
|
||||
type: size-limit
|
||||
size: 10mb
|
||||
layout:
|
||||
type: pattern
|
Loading…
Reference in new issue