-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 952 Bytes
/
docker-compose.yml
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
---
version: "2"
services:
bookstack:
image: chenwaichung/bookstack
build: .
container_name: bookstack
environment:
- LANG=C.UTF-8
- LANGUAGE=zh_CN:zh
- LC_ALL=zh_CN.UTF-8
- APP_LANG=zh_CN
- PUID=1000
- PGID=1000
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_PASS=Apd4jGBXkYxdrdovTD
- DB_DATABASE=bookstackapp
volumes:
- ./data/bookstack:/config
ports:
- 6880:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: mysql:5.5
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=Apd4jGBXkYxdrdovTD
- TZ=Asia/Shanghai
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=Apd4jGBXkYxdrdovTD
volumes:
- ./data/db/data:/var/lib/mysql
- ./data/db/config:/etc/mysql/conf.d
restart: unless-stopped