Add env vars support to remaining add-ons

This commit is contained in:
Alexandre
2025-11-18 09:30:28 +01:00
parent e688a07546
commit f310b7faf9
33 changed files with 147 additions and 13 deletions

View File

@@ -1,3 +1,6 @@
- 8.14.3-1 (18-11-2025)
- Added `env_vars` option to support custom environment variables from the add-on configuration.
- BREAKING CHANGE : upgrade to v8.14.3. You'll need to rebuild your indexes
## v7

View File

@@ -80,6 +80,10 @@ Connect other applications to Elasticsearch using:
- **Nextcloud**: Configure Full Text Search app to use this Elasticsearch instance
- **Home Assistant**: Use with the Elasticsearch component for event publishing
### Environment variables
Use the add-on `env_vars` option to pass extra environment variables (uppercase or lowercase names). See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
## Integration with HA
Component : https://community.home-assistant.io/t/elasticsearch-component-publish-home-assistant-events-to-elasticsearch/66877

View File

@@ -74,14 +74,20 @@ image: ghcr.io/alexbelgium/elasticsearch-{arch}
map:
- config:rw
name: Elasticsearch server
options:
env_vars: []
ports:
9200/tcp: 9200
9300/tcp: 9300
ports_description:
9200/tcp: API calls over HTTP
9300/tcp: custom binary protoco
schema:
env_vars:
- name: match(^[A-Za-z0-9_]+$)
value: str?
slug: elasticsearch
startup: services
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/elasticsearch
version: 8.14.3
version: 8.14.3-1