Skip to content

Commit

Permalink
supserset
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Dec 29, 2023
1 parent 796476a commit 638937d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 2 additions & 4 deletions apps/superset/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@
# superset_config.py=>multiply language
# docker-bootstrap.sh=>pip install
# docker-init.sh=>ADMIN_PASSWORD

W9_DIST=community
W9_REPO=apache/superset
# latest is not stable version
W9_VERSION=2.1.0
W9_ID=superset
W9_POWER_PASSWORD=uQ8E1wVTzG8SOk3!

#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=superset
W9_HTTP_PORT=8088
W9_HTTP_PORT_SET=9001

W9_LOGIN_USER=admin
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
W9_URL_REPLACE=false
W9_URL=appname.example.com
W9_DIST=community
W9_DB_EXPOSE="postgresql"
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####
14 changes: 7 additions & 7 deletions apps/superset/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
environment:
# database configurations (do not modify)
- DATABASE_DB=$W9_ID
- DATABASE_HOST=db
- DATABASE_HOST=$W9_ID-postgresql
- DATABASE_PASSWORD=$W9_POWER_PASSWORD
- DATABASE_USER=superset

Expand All @@ -46,9 +46,9 @@ services:
- postgresql:/var/lib/postgresql/data

superset:
env_file: src/docker/.env-non-dev
env_file: .env
image: *superset-image
container_name: $W9_ID-app
container_name: $W9_ID
restart: unless-stopped
ports:
- '$W9_HTTP_PORT_SET:$W9_HTTP_PORT'
Expand All @@ -58,7 +58,7 @@ services:
- COMPOSE_PROJECT_NAME=superset
# database configurations (do not modify)
- DATABASE_DB=$W9_ID
- DATABASE_HOST=db
- DATABASE_HOST=$W9_ID-postgresql
- DATABASE_PASSWORD=$W9_POWER_PASSWORD
- DATABASE_USER=$W9_ID
# database engine specific environment variables
Expand All @@ -84,7 +84,7 @@ services:
- COMPOSE_PROJECT_NAME=superset
# database configurations (do not modify)
- DATABASE_DB=$W9_ID
- DATABASE_HOST=db
- DATABASE_HOST=$W9_ID-postgresql
- DATABASE_PASSWORD=$W9_POWER_PASSWORD
- DATABASE_USER=$W9_ID
# database engine specific environment variables
Expand Down Expand Up @@ -114,7 +114,7 @@ services:
- COMPOSE_PROJECT_NAME=superset
# database configurations (do not modify)
- DATABASE_DB=$W9_ID
- DATABASE_HOST=db
- DATABASE_HOST=$W9_ID-postgresql
- DATABASE_PASSWORD=$W9_POWER_PASSWORD
- DATABASE_USER=$W9_ID
# database engine specific environment variables
Expand Down Expand Up @@ -144,7 +144,7 @@ services:
- COMPOSE_PROJECT_NAME=superset
# database configurations (do not modify)
- DATABASE_DB=$W9_ID
- DATABASE_HOST=db
- DATABASE_HOST=$W9_ID-postgresql
- DATABASE_PASSWORD=$W9_POWER_PASSWORD
- DATABASE_USER=$W9_ID
# database engine specific environment variables
Expand Down

0 comments on commit 638937d

Please sign in to comment.