You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bookstack](https://github.com/BookStackApp/BookStack) is a free and open source Wiki designed for creating beautiful documentation. Featuring a simple, but powerful WYSIWYG editor it allows for teams to create detailed and useful documentation with ease.
43
42
@@ -63,30 +62,39 @@ The architectures supported by this image are:
63
62
64
63
## Application Setup
65
64
66
-
The default username is [email protected] with the password of **password**, access the container at http://dockerhost:6875.
65
+
The default username is [email protected] with the password of **password**, access the container at http://<hostip>:6875.
67
66
68
67
This application is dependent on a MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
69
68
70
-
71
69
If you intend to use this application behind a subfolder reverse proxy, such as our SWAG container or Traefik you will need to make sure that the `APP_URL` environment variable is set to your external domain, or it will not work.
72
70
73
71
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/.
74
72
75
73
### BookStack File & Directory Paths
74
+
76
75
This container ensures certain BookStack application files & folders, such as user file upload folders, are retained within the `/config` folder so that they are persistent & accessible when the `/config` container path is bound as a volume. There may be cases, when following the BookStack documentation, that you'll need to know how these files and folders are used relative to a non-container BookStack installation.
77
76
78
77
Below is a mapping of container `/config` paths to those relative within a BookStack install directory:
### Advanced Users (full control over the .env file)
97
+
90
98
If you wish to use the extra functionality of BookStack such as email, Memcache, LDAP and so on you will need to make your own .env file with guidance from the BookStack documentation.
91
99
92
100
When you create the container, do not set any arguments for any SQL settings. The container will copy an exemplary .env file to /config/www/.env on your host system for you to edit.
@@ -101,40 +109,24 @@ To help you get started creating a container from this image you can either use
101
109
---
102
110
services:
103
111
bookstack:
104
-
image: lscr.io/linuxserver/bookstack
112
+
image: lscr.io/linuxserver/bookstack:latest
105
113
container_name: bookstack
106
114
environment:
107
115
- PUID=1000
108
116
- PGID=1000
109
-
- TZ=Europe/London
110
-
- APP_URL=https://bookstack.example.com
111
-
- DB_HOST=bookstack_db
117
+
- TZ=Etc/UTC
118
+
- APP_URL=
119
+
- DB_HOST=
112
120
- DB_PORT=3306
113
-
- DB_USER=bookstack
114
-
- DB_PASS=<yourdbpass>
115
-
- DB_DATABASE=bookstackapp
121
+
- DB_USERNAME=
122
+
- DB_PASSWORD=
123
+
- DB_DATABASE=
124
+
- QUEUE_CONNECTION= #optional
116
125
volumes:
117
-
- /path/to/bookstack_app_data:/config
126
+
- /path/to/bookstack/config:/config
118
127
ports:
119
128
- 6875:80
120
129
restart: unless-stopped
121
-
depends_on:
122
-
- bookstack_db
123
-
124
-
bookstack_db:
125
-
image: lscr.io/linuxserver/mariadb
126
-
container_name: bookstack_db
127
-
environment:
128
-
- PUID=1000
129
-
- PGID=1000
130
-
- TZ=Europe/London
131
-
- MYSQL_ROOT_PASSWORD=<yourdbpass>
132
-
- MYSQL_DATABASE=bookstackapp
133
-
- MYSQL_USER=bookstack
134
-
- MYSQL_PASSWORD=<yourdbpass>
135
-
volumes:
136
-
- /path/to/bookstack_db_data:/config
137
-
restart: unless-stopped
138
130
```
139
131
140
132
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
@@ -145,12 +137,12 @@ docker run -d \
145
137
-e PUID=1000 \
146
138
-e PGID=1000 \
147
139
-e TZ=Etc/UTC \
148
-
-e APP_URL=yourbaseurl \
149
-
-e DB_HOST=yourdbhost \
150
-
-e DB_PORT=yourdbport \
151
-
-e DB_USER=yourdbuser \
152
-
-e DB_PASS=yourdbpass \
153
-
-e DB_DATABASE=bookstackapp \
140
+
-e APP_URL= \
141
+
-e DB_HOST= \
142
+
-e DB_PORT=3306 \
143
+
-e DB_USERNAME= \
144
+
-e DB_PASSWORD= \
145
+
-e DB_DATABASE= \
154
146
-e QUEUE_CONNECTION= `#optional` \
155
147
-p 6875:80 \
156
148
-v /path/to/bookstack/config:/config \
@@ -168,12 +160,12 @@ Containers are configured using parameters passed at runtime (such as those abov
168
160
|`-e PUID=1000`| for UserID - see below for explanation |
169
161
|`-e PGID=1000`| for GroupID - see below for explanation |
170
162
|`-e TZ=Etc/UTC`| specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
171
-
|`-e APP_URL=yourbaseurl`|for specifying the IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`|
172
-
|`-e DB_HOST=yourdbhost`|for specifying the database host|
173
-
|`-e DB_PORT=yourdbport`|for specifying the database port if not default 3306 |
174
-
|`-e DB_USER=yourdbuser`|for specifying the database user |
175
-
|`-e DB_PASS=yourdbpass`|for specifying the database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
176
-
|`-e DB_DATABASE=bookstackapp`|for specifying the database to be used|
163
+
|`-e APP_URL=`|The IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`|
164
+
|`-e DB_HOST=`|The database instance hostname|
165
+
|`-e DB_PORT=3306`|Database port (default `3306`)|
166
+
|`-e DB_USERNAME=`|Database user |
167
+
|`-e DB_PASSWORD=`|Database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
168
+
|`-e DB_DATABASE=`|Database name|
177
169
|`-e QUEUE_CONNECTION=`| Set to `database` to enable async actions like sending email or triggering webhooks. See [documentation](https://www.bookstackapp.com/docs/admin/email-webhooks/#async-action-handling). |
178
170
|`-v /config`| Persistent config files |
179
171
@@ -339,6 +331,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
339
331
340
332
## Versions
341
333
334
+
***11.10.24:** - Default to environment config over .env file config.
342
335
***06.09.24:** - Add php-exif for reading image EXIF data.
343
336
***27.05.24:** - Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings.
344
337
***25.01.24:** - Existing users should update: site-confs/default.conf - Cleanup default site conf.
- { env_var: "APP_URL", env_value: "yourbaseurl", desc: "for specifying the IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`"}
- { env_var: "DB_PASS", env_value: "yourdbpass", desc: "for specifying the database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.)" }
32
-
- { env_var: "DB_DATABASE", env_value: "bookstackapp", desc: "for specifying the database to be used" }
27
+
- { env_var: "APP_URL", env_value: "", desc: "The IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`"}
- { env_var: "QUEUE_CONNECTION", env_value: "", desc: "Set to `database` to enable async actions like sending email or triggering webhooks. See [documentation](https://www.bookstackapp.com/docs/admin/email-webhooks/#async-action-handling)." }
41
41
42
-
custom_compose: |
43
-
---
44
-
services:
45
-
bookstack:
46
-
image: lscr.io/linuxserver/bookstack
47
-
container_name: bookstack
48
-
environment:
49
-
- PUID=1000
50
-
- PGID=1000
51
-
- TZ=Europe/London
52
-
- APP_URL=https://bookstack.example.com
53
-
- DB_HOST=bookstack_db
54
-
- DB_PORT=3306
55
-
- DB_USER=bookstack
56
-
- DB_PASS=<yourdbpass>
57
-
- DB_DATABASE=bookstackapp
58
-
volumes:
59
-
- /path/to/bookstack_app_data:/config
60
-
ports:
61
-
- 6875:80
62
-
restart: unless-stopped
63
-
depends_on:
64
-
- bookstack_db
65
-
66
-
bookstack_db:
67
-
image: lscr.io/linuxserver/mariadb
68
-
container_name: bookstack_db
69
-
environment:
70
-
- PUID=1000
71
-
- PGID=1000
72
-
- TZ=Europe/London
73
-
- MYSQL_ROOT_PASSWORD=<yourdbpass>
74
-
- MYSQL_DATABASE=bookstackapp
75
-
- MYSQL_USER=bookstack
76
-
- MYSQL_PASSWORD=<yourdbpass>
77
-
volumes:
78
-
- /path/to/bookstack_db_data:/config
79
-
restart: unless-stopped
80
-
81
42
# application setup block
82
43
app_setup_block_enabled: true
83
44
app_setup_block: |
84
45
85
-
The default username is [email protected] with the password of **password**, access the container at http://dockerhost:6875.
46
+
The default username is [email protected] with the password of **password**, access the container at http://<host ip>:6875.
86
47
87
48
This application is dependent on a MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
88
49
89
-
90
50
If you intend to use this application behind a subfolder reverse proxy, such as our SWAG container or Traefik you will need to make sure that the `APP_URL` environment variable is set to your external domain, or it will not work.
91
51
92
52
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/.
93
53
94
54
### BookStack File & Directory Paths
55
+
95
56
This container ensures certain BookStack application files & folders, such as user file upload folders, are retained within the `/config` folder so that they are persistent & accessible when the `/config` container path is bound as a volume. There may be cases, when following the BookStack documentation, that you'll need to know how these files and folders are used relative to a non-container BookStack installation.
96
57
97
58
Below is a mapping of container `/config` paths to those relative within a BookStack install directory:
### Advanced Users (full control over the .env file)
78
+
109
79
If you wish to use the extra functionality of BookStack such as email, Memcache, LDAP and so on you will need to make your own .env file with guidance from the BookStack documentation.
110
80
111
81
When you create the container, do not set any arguments for any SQL settings. The container will copy an exemplary .env file to /config/www/.env on your host system for you to edit.
112
82
113
-
114
83
# changelog
115
84
changelogs:
85
+
- { date: "11.10.24:", desc: "Default to environment config over .env file config."}
0 commit comments