-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
bookstack.yml
54 lines (50 loc) · 1.56 KB
/
bookstack.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# DOMAIN=example.com docker stack deploy -c bookstack.yml bookstack
services:
app:
image: linuxserver/bookstack:${VERSION:-24.10.3}
environment:
- APP_URL=${SCHEME:-https}://${DOMAIN:-bookstack.localhost}
- ALLOW_ROBOTS=${ALLOW_ROBOTS:-true}
- APP_VIEWS_BOOKS=${APP_VIEWS_BOOKS:-grid}
- APP_VIEWS_BOOKSHELF=${APP_VIEWS_BOOKS:-grid}
- APP_VIEWS_BOOKSHELVES=${APP_VIEWS_BOOKS:-grid}
- DB_CONNECTION=mysql
- DB_HOST=mariadb
- DB_PORT=3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}data:/config
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.bookstack-${NUMBER:-1}.rule=Host(`${DOMAIN:-bookstack.localhost}`)
- traefik.http.routers.bookstack-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.bookstack-${NUMBER:-1}.service=bookstack-${NUMBER:-1}
- traefik.http.routers.bookstack-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.bookstack-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik
mariadb:
image: mariadb:10.5.9
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=myp@ssw0rd
networks:
- internal
volumes:
mariadb:
data:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net