adding REDIS_DATABASE env var (#11)

* 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:
Travis Thompson
2022-04-12 15:06:24 +00:00
committed by Bitnami Containers
co-authored by Travis W Thompson
parent 04590d1f7e
commit 479291db27
2 changed files with 3 additions and 0 deletions
@@ -38,6 +38,7 @@ airflow_scheduler_env_vars=(
AIRFLOW_REDIS_USE_SSL
REDIS_HOST
REDIS_PORT_NUMBER
REDIS_DATABASE
REDIS_USER
REDIS_PASSWORD
)
@@ -89,6 +90,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:-}"
+1
View File
@@ -315,6 +315,7 @@ The Apache Airflow Scheduler instance can be customized by specifying environmen
- `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 Apache Airflow Scheduler will use to connect with Redis(TM). No defaults.
- `REDIS_PASSWORD`: Password that Apache Airflow Scheduler will use to connect with Redis(TM). No defaults.