Skip to content

Commit

Permalink
feat: add elastic version in env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Aug 2, 2024
1 parent 88889e0 commit 68db10a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ 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
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ services:
container_name: "${COMPOSE_PROJECT_NAME:-blog}-elasticsearch"
build:
context: elastic
args:
ELASTIC_STACK_VERSION: ${ELASTIC_STACK_VERSION:-8.14.3}
environment:
- discovery.type=${ELASTICSEARCH_DISCOVERY_TYPE:-single-node}
- xpack.security.enabled=${ELASTICSEARCH_XPACK_SECURITY_ENABLED:-false}
Expand Down
4 changes: 3 additions & 1 deletion elastic/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:8.14.3
ARG ELASTIC_STACK_VERSION

FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_STACK_VERSION}

0 comments on commit 68db10a

Please sign in to comment.