This repository was archived by the owner on May 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ accesslog = '-' # stdout
2
+ errorlog = '-' # stderr
3
+
4
+ workers = 4
5
+ worker_class = 'gevent'
6
+ worker_connections = 1000
Original file line number Diff line number Diff line change
1
+ import logging
2
+ import os
3
+
4
+ logging .basicConfig (level = logging .DEBUG , format = '[%(asctime)s] [%(levelname)-5s] %(name)-15s:%(lineno)d: %(message)s' )
5
+
6
+ SUPERSET_WEBSERVER_PROTOCOL = 'http'
7
+ SUPERSET_WEBSERVER_ADDRESS = '0.0.0.0'
8
+ SUPERSET_WEBSERVER_PORT = 8088
9
+ ENABLE_PROXY_FIX = True
10
+ SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:SuperSecr3t@postgres:5432/postgres'
11
+
12
+ if "SUPERSET_HOME" in os .environ :
13
+ DATA_DIR = os .environ ["SUPERSET_HOME" ]
14
+ else :
15
+ DATA_DIR = os .path .join (os .path .expanduser ("~" ), ".superset" )
16
+
17
+ UPLOAD_FOLDER = DATA_DIR + "/app/static/uploads/"
18
+ IMG_UPLOAD_FOLDER = DATA_DIR + "/app/static/uploads/"
Original file line number Diff line number Diff line change @@ -75,6 +75,26 @@ services:
75
75
- ./configs/trino/:/etc/trino/
76
76
- warehouse_data:/data/warehouse
77
77
78
+ # #### Apache SuperSet #####
79
+ # Create an admin user
80
+ # > superset fab create-admin
81
+ # Load some data to play with
82
+ # > superset load_examples
83
+ # Create default roles and permissions
84
+ # > superset init
85
+ superset :
86
+ image : dungdm93/superset:1.0
87
+ command : [webserver]
88
+ environment :
89
+ SUPERSET_CONFIG_PATH : /etc/superset/superset_config.py
90
+ CELERY_CONFIG_PATH : /etc/superset/celeryconfig.py
91
+ PYTHONPATH : /app/
92
+ ports :
93
+ - 8088:8088
94
+ volumes :
95
+ - ./configs/superset:/etc/superset
96
+ - ../:/app/
97
+
78
98
volumes :
79
99
mysql_data :
80
100
postgres_data :
You can’t perform that action at this time.
0 commit comments