mirror of
https://github.com/bitnami/containers.git
synced 2026-04-06 09:17:43 +08:00
adding REDIS_DATABASE env var (#20)
* adding REDIS_DATABASE env var, this allows defining an alterative redis database number so that a redis server can be shared by multiple consumers Signed-off-by: Travis W Thompson <travis@tmdc.io> * adding signed off Signed-off-by: Travis W Thompson <travis@tmdc.io> Co-authored-by: Travis W Thompson <travis@tmdc.io>
This commit is contained in:
committed by
Bitnami Containers
parent
b0d5bdd6d6
commit
80e5532fbe
@@ -38,6 +38,7 @@ airflow_worker_env_vars=(
|
||||
AIRFLOW_REDIS_USE_SSL
|
||||
REDIS_HOST
|
||||
REDIS_PORT_NUMBER
|
||||
REDIS_DATABASE
|
||||
REDIS_USER
|
||||
REDIS_PASSWORD
|
||||
)
|
||||
@@ -88,6 +89,7 @@ export AIRFLOW_DATABASE_USE_SSL="${AIRFLOW_DATABASE_USE_SSL:-no}"
|
||||
export AIRFLOW_REDIS_USE_SSL="${AIRFLOW_REDIS_USE_SSL:-no}"
|
||||
export REDIS_HOST="${REDIS_HOST:-redis}"
|
||||
export REDIS_PORT_NUMBER="${REDIS_PORT_NUMBER:-6379}"
|
||||
export REDIS_DATABASE="${REDIS_DATABASE:-1}"
|
||||
export REDIS_USER="${REDIS_USER:-}"
|
||||
export REDIS_PASSWORD="${REDIS_PASSWORD:-}"
|
||||
|
||||
|
||||
@@ -316,6 +316,7 @@ The Airflow Worker instance can be customized by specifying environment variable
|
||||
- `AIRFLOW_REDIS_USE_SSL`: Set to yes if Redis(TM) uses SSL. Default: **no**
|
||||
- `REDIS_HOST`: Hostname for Redis(TM) server. Default: **redis**
|
||||
- `REDIS_PORT_NUMBER`: Port used by Redis(TM) server. Default: **6379**
|
||||
- `REDIS_DATABASE`: Database number for Redis(TM) server. Default: **1**
|
||||
- `REDIS_USER`: User that Airflow Worker will use to connect with Redis(TM). No defaults.
|
||||
- `REDIS_PASSWORD`: Password that Airflow Worker will use to connect with Redis(TM). No defaults.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user