BookStack 是一个简单、开源、自托管、易于使用的组织和存储信息的平台。
docker-compose.yml
version: "2.0"
services:
bookstack:
image: linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=100
- APP_URL=your_domain
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=Admin@123
- DB_DATABASE=bookstackapp
volumes:
- /share/Container/bookstack/data:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=100
- MYSQL_ROOT_PASSWORD=Admin@123
- TZ=Asia/Shanghai
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=Admin@123
volumes:
- /share/Container/bookstack/db:/config
restart: unless-stopped
PUID和PGID获取
id your_user
改变域名的处理方法(不时之需)
改变
docker-compose.yml
中的APP_URL
地址为新域名使用如下代码更新数据库中的内容:
Update pages SET html= REPLACE(html, 'old domain', 'new domain');
Update pages SET text= REPLACE(text, 'old domain', 'new domain');
Update books SET description= REPLACE(description, 'old domain', 'new domain');
评论区