mirror of
https://github.com/intari/roocodetests_1.git
synced 2025-04-08 13:09:12 +00:00
fix for elastic username/pass
This commit is contained in:
parent
7c95f7c6f7
commit
ce843be456
2 changed files with 17 additions and 4 deletions
12
.env.example
12
.env.example
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue