Skip to content

Commit e953d45

Browse files
committed
📃 docs(README): [skip ci] 补充开箱即用配置
1 parent 5e72129 commit e953d45

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
### Docker 镜像
1414

15-
#### 下载镜像
15+
#### 开箱即用
1616

1717
基于官方镜像生成, 修复了汉化问题, 仅保留中文和英文两种语言并且默认显示中文, 默认时区上海, 并添加了 PostgreSQL 和 MySQL 数据库驱动.
1818
为了做到开箱即用, 修改了以下默认配置:
@@ -23,13 +23,26 @@ WTF_CSRF_ENABLED = False
2323
TALISMAN_ENABLED = False
2424
```
2525

26-
一键启动体验汉化版 Superset
26+
一键启动体验汉化版 Superset, (http://localhost:8080)
2727

2828
```bash
2929
docker run -d --name superset -p 8080:8088 lutinglt/superset-zh
3030
```
3131

32-
> 登录仍需执行 `superset fab create-admin`, `superset db upgrade``superset init` 命令
32+
登录仍需执行以下命令 (命令创建一个管理员账户, 用户名密码均为 `admin`)
33+
34+
```bash
35+
docker exec -it superset superset fab create-admin \
36+
--username admin \
37+
--firstname 'admin' \
38+
--lastname 'admin' \
39+
40+
--password 'admin'
41+
docker exec -it superset superset db upgrade
42+
docker exec -it superset superset init
43+
```
44+
45+
#### 自定义配置
3346

3447
参考配置 docker-compose.yml
3548

@@ -59,8 +72,6 @@ services:
5972
```python
6073
SECRET_KEY = 'superset'
6174
SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@postgres/database'
62-
WTF_CSRF_ENABLED = False
63-
TALISMAN_ENABLED = False
6475
```
6576

6677
#### 手动构建

0 commit comments

Comments
 (0)