forked from linuxserver/docker-bookstack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
41 lines (41 loc) · 945 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
version: "2"
services:
bookstack:
build: .
image: bookstack:latest
#image: linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_PASS=yourdbpass
- DB_DATABASE=bookstackapp
- APP_LANG=zh_CN
- APP_AUTO_LANG_PUBLIC=true
- WKHTMLTOPDF=/usr/bin/boot_wkhtmltopdf.sh
volumes:
- ./data:/config
- /etc/localtime:/etc/localtime:ro
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=yourdbpass
- TZ=Asia/Shanghai
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=yourdbpass
volumes:
- ./data:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped