Skip to content

Commit

Permalink
adding elk elastic
Browse files Browse the repository at this point in the history
  • Loading branch information
rabellino-noaa committed Dec 13, 2022
1 parent 707488f commit d0a619e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elastic/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# need to move this to secrets
#--------------------------------
ELASTIC_SECURITY=true
ELASTIC_PASSWORD=Decemberseventh2022!
39 changes: 39 additions & 0 deletions elastic/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3.7'

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
container_name: elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- ELASTIC_PASSWORD=$ELASTIC_PASSWORD
- xpack.security.enabled=$ELASTIC_SECURITY
- xpack.license.self_generated.type=basic
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.12.0
container_name: kibana
environment:
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=$ELASTIC_PASSWORD
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
networks:
- elastic
volumes:
elasticsearch-data:
driver: local
networks:
elastic:
driver: bridge

0 comments on commit d0a619e

Please sign in to comment.