Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Flynnon committed Nov 12, 2020
1 parent db69de2 commit 3adcf19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ WeChat:<br>
2. 启动

``` bash
docker-compose -f deploy/docker/docker-compose.yml up --build
docker-compose -f deploy/docker-compose.yaml up --build

# 如果不需要初始化数据,可忽略
# 如果需要初始化数据及账号,可登录到具体的实例上执行下述命令
# 创建管理员账户 此处详见 其它操作--增加用户
python manage.py createsuperuser # 后续 依次输入用户名、密码、邮箱 即可创建一个管理员账号
# 如果希望对系统有一个直观的感受,可以使用如下指令来预注入一些数据
ython manage.py init_risk_data
python manage.py init_risk_data
```

### 后台介绍
Expand Down
8 changes: 8 additions & 0 deletions deploy/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ services:
python www/manage.py runserver 0.0.0.0:8000"
environment:
- RISK_ENV=docker
deploy:
restart_policy:
condition: on-failure
max_attempts: 8

app_service:
build:
Expand All @@ -39,6 +43,10 @@ services:
- mysql_db
environment:
- RISK_ENV=docker
deploy:
restart_policy:
condition: on-failure
max_attempts: 8

redis_db:
image: redis:6.0.8
Expand Down

0 comments on commit 3adcf19

Please sign in to comment.