-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (39 loc) · 826 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
42
43
44
45
46
47
---
version: '3'
services:
mysql-server:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=secret
volumes:
- mysql:/var/lib/mysql
bookstack-server:
image: ownport/bookstack:0.19.0
depends_on:
- mysql-server
environment:
- DB_HOST=mysql-server:3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=secret
volumes:
- uploads:/var/www/public/uploads
- storage:/var/www/public/storage
ports:
- "8080:80"
volumes:
mysql:
# driver: host
# driver_opts:
# source: data/mysql
uploads:
# driver: host
# driver_opts:
# source: data/uploads
storage:
# driver: host
# driver_opts:
# source: data/storage