Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.

Commit f116585

Browse files
committed
chores: add superset into docker-compose.yml
1 parent 3f878bd commit f116585

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
accesslog = '-' # stdout
2+
errorlog = '-' # stderr
3+
4+
workers = 4
5+
worker_class = 'gevent'
6+
worker_connections = 1000
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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/"

hack/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,26 @@ services:
7575
- ./configs/trino/:/etc/trino/
7676
- warehouse_data:/data/warehouse
7777

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+
7898
volumes:
7999
mysql_data:
80100
postgres_data:

0 commit comments

Comments
 (0)