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_USER=admin
|
||||||
|
|
||||||
# Admin password for API management (required, string)
|
# 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
|
- ELASTICSEARCH_HOST=booksearch_elastic
|
||||||
- BASE_URL=${BASE_URL}
|
- BASE_URL=${BASE_URL}
|
||||||
- CPU_LIMIT=${CPU_LIMIT}
|
- CPU_LIMIT=${CPU_LIMIT}
|
||||||
|
- ADMIN_USER=${ADMIN_USER}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
- SNIPPET_CHAR_LIMIT=${SNIPPET_CHAR_LIMIT}
|
- SNIPPET_CHAR_LIMIT=${SNIPPET_CHAR_LIMIT}
|
||||||
volumes:
|
volumes:
|
||||||
- ${SMB_SHARE_PATH}:/books
|
- ${SMB_SHARE_PATH}:/books
|
||||||
|
@ -29,11 +31,12 @@ services:
|
||||||
- "9300:9300"
|
- "9300:9300"
|
||||||
environment:
|
environment:
|
||||||
- discovery.type=single-node
|
- discovery.type=single-node
|
||||||
- ELASTICSEARCH_USERNAME=admin
|
- ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME}
|
||||||
- ELASTICSEARCH_PASSWORD=password
|
- ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD}
|
||||||
|
- ELASTICSEARCH_PLUGINS=analysis-stempel
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:9200"]
|
test: ["CMD", "curl", "-f", "http://localhost:9200/_nodes/plugins?filter_path=nodes.*.plugins"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
Loading…
Add table
Reference in a new issue