Ease switching of database engines for docker builds (#8863)

This commit is contained in:
Chan Chak Shing
2019-12-20 18:57:33 +08:00
committed by Daniel Vaz Gaspar
parent 3a468a53d9
commit d0efd0e4c9
3 changed files with 37 additions and 21 deletions

View File

@@ -15,11 +15,25 @@
# limitations under the License.
#
COMPOSE_PROJECT_NAME=superset
POSTGRES_DB=superset
POSTGRES_HOST=postgres
POSTGRES_PASSWORD=superset
POSTGRES_PORT=5432
POSTGRES_USER=superset
# database configurations (do not modify)
DATABASE_DB=superset
DATABASE_HOST=db
DATABASE_PASSWORD=superset
DATABASE_USER=superset
# database engine specific environment variables
# change the below if you prefers another database engine
DATABASE_PORT=5432
DATABASE_DIALECT=postgresql
POSTGRES_DB=${DATABASE_DB}
POSTGRES_USER=${DATABASE_USER}
POSTGRES_PASSWORD=${DATABASE_PASSWORD}
#MYSQL_DATABASE=${DATABASE_DB}
#MYSQL_USER=${DATABASE_USER}
#MYSQL_PASSWORD=${DATABASE_PASSWORD}
#MYSQL_RANDOM_ROOT_PASSWORD=yes
# Add the mapped in /app/pythonpath_docker which allows devs to override stuff
PYTHONPATH=/app/pythonpath:/app/pythonpath_docker
REDIS_HOST=redis
@@ -27,4 +41,4 @@ REDIS_PORT=6379
FLASK_ENV=development
SUPERSET_ENV=development
SUPERSET_LOAD_EXAMPLES=yes
SUPERSET_LOAD_EXAMPLES=yes