File tree Expand file tree Collapse file tree 5 files changed +24
-52
lines changed
Filter options
Expand file tree Collapse file tree 5 files changed +24
-52
lines changed
Original file line number Diff line number Diff line change
1
+ DB_ROOT_PASSWORD =
2
+ DB_PASSWORD =
3
+
4
+ MAIL_HOST =
5
+ MAIL_USERNAME =
6
+ MAIL_PASSWORD =
7
+ MAIL_FROM =
8
+ MAIL_FROM_NAME =
9
+
10
+ APP_URL =
11
+
12
+ VOLUMES_ROOT_PATH = /opt/docs
13
+ RESTART_MODE = unless-stopped
Original file line number Diff line number Diff line change 1
1
FROM alpine:3 as bookstack
2
- ENV BOOKSTACK_VERSION=22.07.2
2
+ ENV BOOKSTACK_VERSION=22.07.3
3
3
RUN apk add --no-cache curl tar
4
4
RUN set -x; \
5
5
curl -SL -o bookstack.tar.gz https://github.com/BookStackApp/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz \
@@ -56,7 +56,7 @@ COPY bookstack.conf /etc/apache2/sites-available/000-default.conf
56
56
57
57
COPY --from=bookstack --chown=33:33 /bookstack/ /var/www/bookstack/
58
58
59
- ARG COMPOSER_VERSION=2.1.12
59
+ ARG COMPOSER_VERSION=2.2.18
60
60
RUN set -x; \
61
61
cd /var/www/bookstack \
62
62
&& curl -sS https://getcomposer.org/installer | php -- --version=$COMPOSER_VERSION \
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,31 +2,28 @@ version: "3"
2
2
services :
3
3
database :
4
4
image : mariadb:10.5
5
+ restart : ${RESTART_MODE}
5
6
environment :
6
- - MYSQL_ROOT_PASSWORD=secret
7
+ - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
7
8
- MYSQL_DATABASE=bookstack
8
9
- MYSQL_USER=bookstack
9
- - MYSQL_PASSWORD=secret
10
+ - MYSQL_PASSWORD=${DB_PASSWORD}
10
11
volumes :
11
- - database-data:/var/lib/mysql
12
+ - ${VOLUMES_ROOT_PATH}/ database-data:/var/lib/mysql
12
13
13
14
bookstack :
14
15
build : ./
16
+ restart : ${RESTART_MODE}
15
17
depends_on :
16
18
- database
17
19
environment :
18
20
- DB_HOST=database:3306
19
21
- DB_DATABASE=bookstack
20
22
- DB_USERNAME=bookstack
21
- - DB_PASSWORD=secret
22
- - APP_URL=http://localhost:8080
23
+ - DB_PASSWORD=${DB_PASSWORD}
24
+ - APP_URL=${APP_URL}
23
25
volumes :
24
- - uploads:/var/www/bookstack/public/uploads
25
- - storage-uploads:/var/www/bookstack/storage/uploads
26
+ - ${VOLUMES_ROOT_PATH}/ uploads:/var/www/bookstack/public/uploads
27
+ - ${VOLUMES_ROOT_PATH}/ storage-uploads:/var/www/bookstack/storage/uploads
26
28
ports :
27
29
- " 8080:8080"
28
-
29
- volumes :
30
- database-data :
31
- uploads :
32
- storage-uploads :
You can’t perform that action at this time.
0 commit comments