mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-03 00:07:59 +08:00
发布应用 BookStack
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
7b44f3fa80
commit
eb658d74e9
@ -48,13 +48,21 @@ additionalProperties:
|
||||
labelEn: Application URL
|
||||
required: true
|
||||
type: text
|
||||
- default: "127.0.0.1:3306"
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOST
|
||||
labelZh: 数据库地址
|
||||
labelEn: Database Address
|
||||
labelZh: 数据库 主机
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "bookstack"
|
||||
edit: true
|
||||
envKey: DB_DATABASE
|
||||
@ -76,60 +84,3 @@ additionalProperties:
|
||||
labelEn: Database Password
|
||||
required: true
|
||||
type: password
|
||||
- default: "smtp"
|
||||
edit: true
|
||||
envKey: MAIL_DRIVER
|
||||
labelZh: 邮件协议
|
||||
labelEn: Mail Protocol
|
||||
required: false
|
||||
type: text
|
||||
- default: "BookStack"
|
||||
edit: true
|
||||
envKey: MAIL_FROM_NAME
|
||||
labelZh: 邮件发送者
|
||||
labelEn: Mail Sender
|
||||
required: false
|
||||
type: text
|
||||
- default: "bookstack@example.com"
|
||||
edit: true
|
||||
envKey: MAIL_FROM
|
||||
labelZh: 邮件发送地址
|
||||
labelEn: Mail Sender Address
|
||||
required: false
|
||||
type: text
|
||||
- default: "smtp.gmail.com"
|
||||
edit: true
|
||||
envKey: MAIL_HOST
|
||||
labelZh: 邮件服务器 主机
|
||||
labelEn: Mail Server Host
|
||||
required: false
|
||||
type: text
|
||||
- default: 587
|
||||
edit: true
|
||||
envKey: MAIL_PORT
|
||||
labelZh: 邮件服务器 端口
|
||||
labelEn: Mail Server Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAIL_USERNAME
|
||||
labelZh: 邮件服务器 用户名
|
||||
labelEn: Mail Server Username
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAIL_PASSWORD
|
||||
labelZh: 邮件服务器 密码
|
||||
labelEn: Mail Server Password
|
||||
required: false
|
||||
type: password
|
||||
- default: "tls"
|
||||
edit: true
|
||||
envKey: MAIL_ENCRYPTION
|
||||
labelZh: 邮件服务器 加密协议
|
||||
labelEn: Mail Server Encryption Protocol
|
||||
required: false
|
||||
type: text
|
||||
|
@ -12,12 +12,14 @@ services:
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
- ${PANEL_APP_PORT_HTTP}:80
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${BOOKSTACK_ROOT_PATH}/uploads:/var/www/bookstack/public/uploads
|
||||
- ${BOOKSTACK_ROOT_PATH}/storage-uploads:/var/www/bookstack/storage/uploads
|
||||
- ${BOOKSTACK_ROOT_PATH}/config:/config
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- QUEUE_CONNECTION=database
|
||||
|
@ -68,6 +68,24 @@ BookStack 提供浅色主题和深色主题的用户界面,节省眼睛 那些
|
||||
|
||||
## 安装说明
|
||||
|
||||
> 默认管理员账号:`admin@admin.com`
|
||||
>
|
||||
> 默认管理员密码:`password`
|
||||
>
|
||||
> 默认已开启队列模式
|
||||
|
||||
### 服务地址
|
||||
|
||||
如果部署后需要修改:
|
||||
|
||||
```bash
|
||||
docker exec -it <bookstack> php /app/www/artisan bookstack:update-url ${OLD_URL} ${NEW_URL}
|
||||
```
|
||||
|
||||
+ `${OLD_URL}`:原服务地址
|
||||
+ `${NEW_URL}`:新服务地址
|
||||
+ `<bookstack>`:容器名称
|
||||
|
||||
### 应用密钥
|
||||
|
||||
> 必须是 32 个字符的随机字符串,用于加密会话数据。
|
||||
@ -95,6 +113,12 @@ openssl rand -base64 32
|
||||
|
||||
格式:`IP:PORT`
|
||||
|
||||
## 高级配置
|
||||
|
||||
如果您想使用 BookStack 的额外功能,如电子邮件、LDAP 等,您需要设置额外的环境变量或根据 BookStack 文档的指导创建自己的.env
|
||||
文件。
|
||||
|
||||
您可修改配置文件: `<持久化目录>/config/www/.env`,然后重启容器。
|
||||
|
||||
---
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user