-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: docker-compose non-dev #25055
fix: docker-compose non-dev #25055
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,18 +28,18 @@ | |
|
||
logger = logging.getLogger() | ||
|
||
DATABASE_DIALECT = os.getenv("DATABASE_DIALECT", "postgresql") | ||
DATABASE_USER = os.getenv("DATABASE_USER", "superset") | ||
DATABASE_PASSWORD = os.getenv("DATABASE_PASSWORD", "superset") | ||
DATABASE_HOST = os.getenv("DATABASE_HOST", "db") | ||
DATABASE_PORT = os.getenv("DATABASE_PORT", "5432") | ||
DATABASE_DB = os.getenv("DATABASE_DB", "superset") | ||
|
||
EXAMPLES_USER = os.getenv("EXAMPLES_USER", "examples") | ||
EXAMPLES_PASSWORD = os.getenv("EXAMPLES_PASSWORD", "examples") | ||
EXAMPLES_HOST = os.getenv("EXAMPLES_HOST", "db") | ||
EXAMPLES_PORT = os.getenv("EXAMPLES_PORT", "5432") | ||
EXAMPLES_DB = os.getenv("EXAMPLES_DB", "examples") | ||
DATABASE_DIALECT = os.getenv("DATABASE_DIALECT") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is acceptable. The only other formulation I can think is having Python parse the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spoke with @michael-s-molina offline who confirmed that the Docker variables are environment variables and thus my previous comment can be ignored. |
||
DATABASE_USER = os.getenv("DATABASE_USER") | ||
DATABASE_PASSWORD = os.getenv("DATABASE_PASSWORD") | ||
DATABASE_HOST = os.getenv("DATABASE_HOST") | ||
DATABASE_PORT = os.getenv("DATABASE_PORT") | ||
DATABASE_DB = os.getenv("DATABASE_DB") | ||
|
||
EXAMPLES_USER = os.getenv("EXAMPLES_USER") | ||
EXAMPLES_PASSWORD = os.getenv("EXAMPLES_PASSWORD") | ||
EXAMPLES_HOST = os.getenv("EXAMPLES_HOST") | ||
EXAMPLES_PORT = os.getenv("EXAMPLES_PORT") | ||
EXAMPLES_DB = os.getenv("EXAMPLES_DB") | ||
|
||
# The SQLAlchemy connection string. | ||
SQLALCHEMY_DATABASE_URI = ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!