Skip to content

Commit 57a96c2

Browse files
authored
Merge pull request coollabsio#2934 from cr4zyiw4n/feat--add-bookstack-template
added bookstack template
2 parents 4e9bafd + 6b178f8 commit 57a96c2

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

templates/compose/bookstack.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# documentation: https://www.bookstackapp.com/docs/
2+
# slogan: BookStack is a simple, self-hosted, easy-to-use platform for organising and storing information
3+
# tags: free-and-open-source,mfa,dark-light-themes,searchable,connected,simple-interface,diagramms,notes
4+
# port: 6875
5+
6+
services:
7+
bookstack:
8+
image: lscr.io/linuxserver/bookstack
9+
container_name: bookstack
10+
environment:
11+
- PUID=1000
12+
- PGID=1000
13+
- TZ=Europe/Berlin
14+
- APP_URL=$SERVICE_FQDN_BOOKSTACK
15+
- DB_HOST=bookstack_db
16+
- DB_PORT=3306
17+
- DB_USER=$SERVICE_USER_MYSQL
18+
- DB_PASS=$SERVICE_PASSWORD_MYSQL
19+
- DB_DATABASE=${MYSQL_DATABASE-bookstackapp}
20+
- QUEUE_CONNECTION=$QUEUE_CONNECTION
21+
volumes:
22+
- 'bookstack_app_data:/config'
23+
ports:
24+
- '6875:80'
25+
restart: unless-stopped
26+
healthcheck:
27+
test:
28+
- CMD-SHELL
29+
- 'wget -qO- http://127.0.0.1:80/'
30+
interval: 5s
31+
timeout: 20s
32+
retries: 10
33+
depends_on:
34+
bookstack_db:
35+
condition: service_healthy
36+
bookstack_db:
37+
image: lscr.io/linuxserver/mariadb
38+
container_name: bookstack_db
39+
environment:
40+
- PUID=1000
41+
- PGID=1000
42+
- TZ=Europe/Berlin
43+
- MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_MYSQLROOT}
44+
- MYSQL_DATABASE=${MYSQL_DATABASE}
45+
- MYSQL_USER=${SERVICE_USER_MYSQL}
46+
- MYSQL_PASSWORD=${SERVICE_PASSWORD_MYSQL}
47+
volumes:
48+
- 'bookstack_db_data:/config'
49+
restart: unless-stopped
50+
healthcheck:
51+
test:
52+
- CMD
53+
- mysqladmin
54+
- ping
55+
- '-h'
56+
- 127.0.0.1
57+
interval: 5s
58+
timeout: 20s
59+
retries: 10

0 commit comments

Comments
 (0)