Skip to content

Commit a7f0e20

Browse files
committed
Updated to 0.31.8
1 parent 1db22ef commit a7f0e20

9 files changed

+47
-25
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ ENV BOOKSTACK_HOME="/var/www/bookstack"
2020

2121
RUN apk update \
2222
&& apk add --no-cache git zip unzip fontconfig ttf-freefont wkhtmltopdf \
23-
tidyhtml-dev openldap-dev \
23+
openldap-dev \
2424
&& apk add --no-cache --virtual .build-deps \
2525
$PHPIZE_DEPS libpng-dev freetype-dev libjpeg-turbo-dev \
2626
&& docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg \
2727
&& docker-php-ext-configure ldap \
2828
&& docker-php-ext-configure opcache --enable-opcache \
29-
&& docker-php-ext-install pdo_mysql tidy gd ldap opcache \
29+
&& docker-php-ext-install pdo_mysql gd ldap opcache \
3030
&& cd /var/www && curl -sS https://getcomposer.org/installer | php \
3131
&& mv /var/www/composer.phar /usr/local/bin/composer \
3232
&& BOOKSTACK_VERSION=$( echo $VERSION | grep -Eo [0-9.]+ | head -1 ) \

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Docker Stack For [BookStack](https://github.com/BookStackApp/BookStack)
22

33
[![DockerHub](https://img.shields.io/docker/cloud/build/zeigren/bookstack)](https://hub.docker.com/r/zeigren/bookstack)
4-
[![MicroBadger](https://images.microbadger.com/badges/image/zeigren/bookstack.svg)](https://microbadger.com/images/zeigren/bookstack)
4+
![Docker Image Size (latest)](https://img.shields.io/docker/image-size/zeigren/bookstack/latest)
55
[![MicroBadger](https://images.microbadger.com/badges/version/zeigren/bookstack.svg)](https://microbadger.com/images/zeigren/bookstack)
66
[![MicroBadger](https://images.microbadger.com/badges/commit/zeigren/bookstack.svg)](https://microbadger.com/images/zeigren/bookstack)
77
![Docker Pulls](https://img.shields.io/docker/pulls/zeigren/bookstack)
88

99
## Tags
1010

1111
- latest
12+
- 0.31.8
1213
- 0.30.1
1314
- 0.30.0
1415
- 0.29.3

bookstack_vhost.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ server {
1010
listen [::]:80;
1111

1212
#UNCOMMENT IF YOU'RE USING A DOMAIN NAME
13-
#server_name bookstack.yourdomain.com;
13+
#server_name bookstack.yourdomain.test;
1414
root /var/www/bookstack/public;
1515

1616
index index.php;

bookstack_vhost_ssl.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ server {
99
listen 443 ssl http2;
1010
listen [::]:443 ssl http2;
1111

12-
server_name bookstack.yourdomain.com;
12+
server_name bookstack.yourdomain.test;
1313
root /var/www/bookstack/public;
1414

1515
# SSL
16-
ssl_certificate /etc/nginx/certs/yourdomain.com.crt;
17-
ssl_certificate_key /etc/nginx/certs/yourdomain.com.key;
16+
ssl_certificate /etc/nginx/certs/yourdomain.test.crt;
17+
ssl_certificate_key /etc/nginx/certs/yourdomain.test.key;
1818

1919
index index.php;
2020

@@ -80,6 +80,6 @@ server {
8080
server {
8181
listen 80 default_server;
8282
listen [::]:80 default_server;
83-
server_name bookstack.yourdomain.com;
83+
server_name bookstack.yourdomain.test;
8484
return 301 https://$host$request_uri;
8585
}

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ services:
44
image: nginx:alpine
55
volumes:
66
- bookstack_public:/var/www/bookstack/public
7+
- ./config/bookstack_vhost.conf:/etc/nginx/conf.d/default.conf
78
# UNCOMMENT IF USING NGINX FOR SSL TERMINATION
8-
# - ./config/bookstack_vhost.conf:/etc/nginx/conf.d/default.conf
9-
# - ./config/yourdomain.com.crt:/etc/nginx/certs/yourdomain.com.crt
10-
# - ./config/yourdomain.com.key:/etc/nginx/certs/yourdomain.com.key
9+
# - ./config/yourdomain.test.crt:/etc/nginx/certs/yourdomain.test.crt
10+
# - ./config/yourdomain.test.key:/etc/nginx/certs/yourdomain.test.key
1111
depends_on:
1212
- bookstack
1313
networks:

docker-entrypoint.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ LDAP_DN=${LDAP_DN:-false}
190190
LDAP_PASS=${LDAP_PASS:-false}
191191
LDAP_USER_FILTER=${LDAP_USER_FILTER:-false}
192192
LDAP_VERSION=${LDAP_VERSION:-false}
193+
LDAP_START_TLS=${LDAP_START_TLS:-false}
193194
LDAP_TLS_INSECURE=${LDAP_TLS_INSECURE:-false}
194195
LDAP_ID_ATTRIBUTE=${LDAP_ID_ATTRIBUTE:-uid}
195196
LDAP_EMAIL_ATTRIBUTE=${LDAP_EMAIL_ATTRIBUTE:-mail}
@@ -229,9 +230,9 @@ DISABLE_EXTERNAL_SERVICES=${DISABLE_EXTERNAL_SERVICES:-false}
229230
# If set, Avatars will be fetched regardless of DISABLE_EXTERNAL_SERVICES option.
230231
AVATAR_URL=${AVATAR_URL:-}
231232
232-
# Enable draw.io integration
233+
# Enable diagrams.net integration
233234
# Can simply be true/false to enable/disable the integration.
234-
# Alternatively, It can be URL to the draw.io instance you want to use.
235+
# Alternatively, It can be URL to the diagrams.net instance you want to use.
235236
# For URLs, The following URL parameters should be included: embed=1&proto=json&spin=1
236237
DRAWIO=${DRAWIO:-true}
237238
@@ -240,12 +241,25 @@ DRAWIO=${DRAWIO:-true}
240241
# Can be 'list' or 'grid'
241242
APP_VIEWS_BOOKS=${APP_VIEWS_BOOKS:-list}
242243
APP_VIEWS_BOOKSHELVES=${APP_VIEWS_BOOKSHELVES:-grid}
244+
APP_VIEWS_BOOKSHELF=${APP_VIEWS_BOOKSHELF:-grid}
245+
246+
# Use dark mode by default
247+
# Will be overriden by any user/session preference.
248+
APP_DEFAULT_DARK_MODE=${APP_DEFAULT_DARK_MODE:-false}
243249
244250
# Page revision limit
245251
# Number of page revisions to keep in the system before deleting old revisions.
246252
# If set to 'false' a limit will not be enforced.
247253
REVISION_LIMIT=${REVISION_LIMIT:-50}
248254
255+
# Recycle Bin Lifetime
256+
# The number of days that content will remain in the recycle bin before
257+
# being considered for auto-removal. It is not a guarantee that content will
258+
# be removed after this time.
259+
# Set to 0 for no recycle bin functionality.
260+
# Set to -1 for unlimited recycle bin lifetime.
261+
RECYCLE_BIN_LIFETIME=${RECYCLE_BIN_LIFETIME:-30}
262+
249263
# Allow <script> tags in page content
250264
# Note, if set to 'true' the page editor may still escape scripts.
251265
ALLOW_CONTENT_SCRIPTS=${ALLOW_CONTENT_SCRIPTS:-false}
@@ -256,6 +270,12 @@ ALLOW_CONTENT_SCRIPTS=${ALLOW_CONTENT_SCRIPTS:-false}
256270
# Contents of the robots.txt file can be overridden, making this option obsolete.
257271
ALLOW_ROBOTS=${ALLOW_ROBOTS:-null}
258272
273+
# A list of hosts that BookStack can be iframed within.
274+
# Space separated if multiple. BookStack host domain is auto-inferred.
275+
# For Example: ALLOWED_IFRAME_HOSTS="https://example.com https://a.example.com"
276+
# Setting this option will also auto-adjust cookies to be SameSite=None.
277+
ALLOWED_IFRAME_HOSTS=${ALLOWED_IFRAME_HOSTS:-null}
278+
259279
# The default and maximum item-counts for listing API requests.
260280
API_DEFAULT_ITEM_COUNT=${API_DEFAULT_ITEM_COUNT:-100}
261281
API_MAX_ITEM_COUNT=${API_MAX_ITEM_COUNT:-500}

docker-swarm-traefik.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ services:
1717
- "traefik.enable=true"
1818
- "traefik.docker.network=traefik"
1919
- "traefik.http.routers.bookstack-http.entrypoints=web"
20-
- "traefik.http.routers.bookstack-http.rule=Host(`bookstack.yourdomain.com`)"
20+
- "traefik.http.routers.bookstack-http.rule=Host(`bookstack.yourdomain.test`)"
2121
- "traefik.http.routers.bookstack-http.middlewares=bookstack-https@docker"
2222
- "traefik.http.routers.bookstack.entrypoints=websecure"
23-
- "traefik.http.routers.bookstack.rule=Host(`bookstack.yourdomain.com`)"
23+
- "traefik.http.routers.bookstack.rule=Host(`bookstack.yourdomain.test`)"
2424
- "traefik.http.routers.bookstack.tls=true"
2525
- "traefik.http.routers.bookstack.tls.certresolver=myresolver"
2626
- "traefik.http.services.bookstack.loadbalancer.server.port=80"
@@ -30,7 +30,7 @@ services:
3030
- "traefik.http.middlewares.bookstack.headers.stsseconds=315360000"
3131
- "traefik.http.services.bookstack.loadbalancer.passhostheader=true"
3232
- "traefik.http.middlewares.bookstack.headers.sslforcehost=true"
33-
- "traefik.http.middlewares.bookstack.headers.sslhost=bookstack.yourdomain.com"
33+
- "traefik.http.middlewares.bookstack.headers.sslhost=bookstack.yourdomain.test"
3434
- "traefik.http.middlewares.bookstack.headers.browserxssfilter=true"
3535
- "traefik.http.middlewares.bookstack.headers.contenttypenosniff=true"
3636
- "traefik.http.middlewares.bookstack.headers.forcestsheader=true"
@@ -62,7 +62,7 @@ services:
6262
- DB_DATABASE=bookstack
6363
- DB_USERNAME=bookstack
6464
- DB_PASSWORD=DOCKER-SECRET->bookstacksql_password
65-
- APP_URL=https://bookstack.yourdomain.com
65+
- APP_URL=https://bookstack.yourdomain.test
6666
- CACHE_DRIVER=redis
6767
- SESSION_DRIVER=redis
6868
- STORAGE_TYPE=local

docker-swarm.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ services:
1818
target: /etc/nginx/conf.d/default.conf
1919
# UNCOMMENT IF USING NGINX FOR SSL TERMINATION
2020
# secrets:
21-
# - source: yourdomain.com.crt
22-
# target: /etc/nginx/certs/yourdomain.com.crt
23-
# - source: yourdomain.com.key
24-
# target: /etc/nginx/certs/yourdomain.com.key
21+
# - source: yourdomain.test.crt
22+
# target: /etc/nginx/certs/yourdomain.test.crt
23+
# - source: yourdomain.test.key
24+
# target: /etc/nginx/certs/yourdomain.test.key
2525

2626
mariadb:
2727
image: mariadb:latest
@@ -81,9 +81,9 @@ secrets:
8181
bookstacksql_password:
8282
external: true
8383
# UNCOMMENT IF USING NGINX FOR SSL TERMINATION
84-
# yourdomain.com.crt:
84+
# yourdomain.test.crt:
8585
# external: true
86-
# yourdomain.com.key:
86+
# yourdomain.test.key:
8787
# external: true
8888

8989
networks:

traefik.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ services:
1111
- "--entrypoints.web.address=:80"
1212
- "--entrypoints.websecure.address=:443"
1313
- "--certificatesResolvers.myresolver.acme.httpChallenge.entryPoint=web"
14-
- "--certificatesResolvers.myresolver.acme.email=EMAIL@CHANGEME.COM"
14+
- "--certificatesResolvers.myresolver.acme.email=EMAIL@CHANGEME.TEST"
15+
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
1516
ports:
1617
- "80:80"
1718
- "443:443"
1819
- "8080:8080"
1920
volumes:
2021
- /var/run/docker.sock:/var/run/docker.sock:ro
21-
- traefik:/etc/traefik/acme
22+
- traefik:/letsencrypt
2223
networks:
2324
- traefik
2425

0 commit comments

Comments
 (0)