Skip to content

Commit

Permalink
feat: setup kibana tool
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Aug 2, 2024
1 parent 68db10a commit f3f08f9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TZ=Asia/Ho_Chi_Minh
USER_ID=1000
GROUP_ID=1000

### PATH SETUP
# ##################### PATH SETUP ######################
# Path to your code folder
# Example: SOURCE_CODE_PATH=/Users/tanhongit/Data/cslant/sources
SOURCE_CODE_PATH=../src
Expand All @@ -18,6 +18,7 @@ SOURCE_CODE_PATH=../src
DATA_PATH=./data
LOG_PATH=./logs

# ##################### DOCKER-COMPOSE ######################
### NGINX
NGINX_HOST_HTTP_PORT=80
NGINX_HOST_HTTPS_PORT=443
Expand All @@ -28,16 +29,29 @@ POSTGRES_PASSWORD=root
POSTGRES_DB=cslant_blog
POSTGRES_HOST_PORT=5432

ELASTIC_STACK_VERSION=8.14.3
## ELASTICSEARCH
ELASTICSEARCH_DISCOVERY_TYPE=single-node
ELASTICSEARCH_XPACK_SECURITY_ENABLED=false
ELASTICSEARCH_JAVA_OPTS="-Xms512m -Xmx512m"
ELASTICSEARCH_HTTP_PORT=9200
ELASTICSEARCH_TRANSPORT_PORT=9300

## #################### TOOL #########################
## POSTGRES ADMINER
PGADMIN_HOST_PORT=5050
PGADMIN_DEFAULT_EMAIL=[email protected]
PGADMIN_DEFAULT_PASSWORD=admin

## KIBANA
KIBANA_PORT=5601

# ##################### REMOTE REPOSITORY ######################
## REMOTE REPOSITORY
GIT_SSH_URL="[email protected]:cslant"
GIT_TOKEN=

## DOMAIN SETTING
# ##################### DOMAIN SETTING ######################
CSLANT_DOMAIN=cslant.com.local
BLOG_DOMAIN=blog.cslant.com.local
BLOG_API_DOMAIN=api.blog.cslant.com.local
Expand All @@ -54,11 +68,3 @@ FE_COMMAND=dev

## SSL Domain (true: https,http | false: http)
IS_SSL=false

ELASTIC_STACK_VERSION=8.14.3
## ELASTICSEARCH
ELASTICSEARCH_DISCOVERY_TYPE=single-node
ELASTICSEARCH_XPACK_SECURITY_ENABLED=false
ELASTICSEARCH_JAVA_OPTS="-Xms512m -Xmx512m"
ELASTICSEARCH_HTTP_PORT=9200
ELASTICSEARCH_TRANSPORT_PORT=9300
23 changes: 23 additions & 0 deletions docker-compose-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,26 @@ services:
PGADMIN_LISTEN_PORT: 80
volumes:
- pgadmin:/var/lib/pgadmin

## KIBANA SERVICE
kibana:
image: docker.elastic.co/kibana/kibana:${ELASTIC_STACK_VERSION:-8.14.3}
container_name: "${COMPOSE_PROJECT_NAME}-kibana"
environment:
- node.name=kibana
- cluster.name=elasticsearch-cluster
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=kibana_system
- ELASTICSEARCH_PASSWORD=${KIBANA_PASSWORD:-changeme}
ports:
- "${KIBANA_PORT:-5601}:5601"
depends_on:
- elasticsearch
healthcheck:
test: [ "CMD-SHELL", "curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'" ]
interval: 30s
timeout: 5s
retries: 3
networks:
- cslant_blog

0 comments on commit f3f08f9

Please sign in to comment.