Apache Superset
This commit is contained in:
@@ -18,13 +18,14 @@ services:
|
||||
depends_on:
|
||||
- database
|
||||
environment:
|
||||
SUPERSET_CONFIG_PATH: /app/pythonpath/superset_config.py
|
||||
SUPERSET_SECRET_KEY: ${SUPERSET_SECRET:-!ChangeMe!}
|
||||
SUPERSET_LOAD_EXAMPLES: no
|
||||
SUPERSET_DATABASE_URI: postgresql+psycopg2://sql:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/superset
|
||||
ports:
|
||||
- "8088:8088"
|
||||
volumes:
|
||||
- superset_home:/app/superset_home
|
||||
- ./superset_config.py:/app/pythonpath/superset_config.py
|
||||
command: >
|
||||
sh -c "
|
||||
superset db upgrade &&
|
||||
@@ -36,4 +37,3 @@ services:
|
||||
volumes:
|
||||
database_data:
|
||||
superset_home:
|
||||
|
||||
@@ -63,4 +63,11 @@ create table region (
|
||||
insert into region values
|
||||
(1, 'Est'), (2, 'Ouest');
|
||||
|
||||
-- Apache Superset
|
||||
create database superset;
|
||||
create user superset with password 'supermotdepasse';
|
||||
grant all privileges on database superset to superset;
|
||||
|
||||
\c superset
|
||||
alter schema public owner to superset;
|
||||
grant all privileges on schema public to superset;
|
||||
|
||||
2
superset_config.py
Normal file
2
superset_config.py
Normal file
@@ -0,0 +1,2 @@
|
||||
SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY'
|
||||
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://superset:supermotdepasse@database:5432/superset"
|
||||
Reference in New Issue
Block a user