fix for elastic username/pass

This commit is contained in:
Dmitriy Kazimirov 2025-04-02 09:09:14 +00:00
parent 7c95f7c6f7
commit ce843be456
2 changed files with 17 additions and 4 deletions

View file

@ -57,4 +57,14 @@ SMB_SHARE_PATH=./smb_share
ADMIN_USER=admin
# Admin password for API management (required, string)
ADMIN_PASSWORD=securepassword123
ADMIN_PASSWORD=securepassword123
# ElasticSearch credentials
# ===============
# Elastic username
ELASTICSEARCH_USERNAME = admin
# Elastic password
ELASTICSEARCH_PASSWORD = password

View file

@ -9,6 +9,8 @@ services:
- ELASTICSEARCH_HOST=booksearch_elastic
- BASE_URL=${BASE_URL}
- CPU_LIMIT=${CPU_LIMIT}
- ADMIN_USER=${ADMIN_USER}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- SNIPPET_CHAR_LIMIT=${SNIPPET_CHAR_LIMIT}
volumes:
- ${SMB_SHARE_PATH}:/books
@ -29,11 +31,12 @@ services:
- "9300:9300"
environment:
- discovery.type=single-node
- ELASTICSEARCH_USERNAME=admin
- ELASTICSEARCH_PASSWORD=password
- ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD}
- ELASTICSEARCH_PLUGINS=analysis-stempel
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
test: ["CMD", "curl", "-f", "http://localhost:9200/_nodes/plugins?filter_path=nodes.*.plugins"]
interval: 30s
timeout: 10s
retries: 5